e621_export_downloader 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71464892548f5aea175d642767ec9c081992971fa05cfa591786e30f05849fc2
|
|
4
|
+
data.tar.gz: 6dab31bc8938e5289981d952e2e674bf32e407e10f83d4fc5bef754174e21750
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5f44050f050ef991ac4ab7fecef628c665f449c46208a6d9e3734dbec95e9f088169adad6f3b81ab9133aef4afecce9f36109c25c7f007a3e2e8d2cb2d4807b
|
|
7
|
+
data.tar.gz: 453c7a2885eebc6681ec5954ae86430147f336806c2f34052cecf862cb6926626ec039df7a1f798b2f467e50a184883f4dc7c0bd28e3dc0fe37ca3d927ab57ad
|
data/lib/e621/post_version.rb
CHANGED
|
@@ -30,6 +30,9 @@ module E621ExportDownloader
|
|
|
30
30
|
sig { returns(T.nilable(Integer)) }
|
|
31
31
|
attr_reader(:parent_id)
|
|
32
32
|
|
|
33
|
+
sig { returns(Integer) }
|
|
34
|
+
attr_reader(:post_id)
|
|
35
|
+
|
|
33
36
|
sig { returns(T.nilable(String)) }
|
|
34
37
|
attr_reader(:rating)
|
|
35
38
|
|
|
@@ -76,6 +79,7 @@ module E621ExportDownloader
|
|
|
76
79
|
@locked_tags = T.let(T.must(record["locked_tags"]).empty? ? nil : record["locked_tags"], T.nilable(String))
|
|
77
80
|
@parent_changed = T.let(record["parent_changed"] == "t", T::Boolean)
|
|
78
81
|
@parent_id = T.let(T.must(record["parent_id"]).empty? ? nil : record["parent_id"].to_i, T.nilable(Integer))
|
|
82
|
+
@post_id = T.let(record["post_id"].to_i, Integer)
|
|
79
83
|
@rating = T.let(T.must(record["rating"]).empty? ? nil : record["rating"], T.nilable(String))
|
|
80
84
|
@rating_changed = T.let(record["rating_changed"] == "t", T::Boolean)
|
|
81
85
|
@reason = T.let(T.must(record["reason"]).empty? ? nil : record["reason"], T.nilable(String))
|
|
@@ -102,6 +106,7 @@ module E621ExportDownloader
|
|
|
102
106
|
locked_tags: @locked_tags,
|
|
103
107
|
parent_changed: @parent_changed,
|
|
104
108
|
parent_id: @parent_id,
|
|
109
|
+
post_id: @post_id,
|
|
105
110
|
rating: @rating,
|
|
106
111
|
rating_changed: @rating_changed,
|
|
107
112
|
reason: @reason,
|
|
@@ -19,7 +19,7 @@ class CreateE621Tables < ActiveRecord::Migration<%= migration_version %>
|
|
|
19
19
|
t.string(:name, null: false, index: { unique: true })
|
|
20
20
|
t.text(:other_names, array: true, null: false, default: [])
|
|
21
21
|
t.datetime(:updated_at, null: false)
|
|
22
|
-
t.text(:urls,
|
|
22
|
+
t.text(:urls, null: false)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
create_table(<%= table_ref("bulk_update_requests") %>, id: :bigint, default: nil, force: :cascade) do |t|
|
|
@@ -100,6 +100,7 @@ class CreateE621Tables < ActiveRecord::Migration<%= migration_version %>
|
|
|
100
100
|
t.text(:locked_tags)
|
|
101
101
|
t.boolean(:parent_changed, null: false)
|
|
102
102
|
t.bigint(:parent_id)
|
|
103
|
+
t.bigint(:post_id, null: false)
|
|
103
104
|
t.string(:rating)
|
|
104
105
|
t.boolean(:rating_changed, null: false)
|
|
105
106
|
t.text(:reason)
|