aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-20 02:27:43 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-20 02:27:43 -0700
commit223afdced05ebebdda2b8d40992662f3340258a2 (patch)
treef1ab9c07d960350e1c1d16e1453f9403574e2793 /python
parentb8ca8ebdae304dcc2a694e5dfbc9070003f0df8a (diff)
downloadfatcat-223afdced05ebebdda2b8d40992662f3340258a2.tar.gz
fatcat-223afdced05ebebdda2b8d40992662f3340258a2.zip
fix default editor_id in manifest importer
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/manifest_importer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat/manifest_importer.py b/python/fatcat/manifest_importer.py
index 7762d132..2965d0ef 100644
--- a/python/fatcat/manifest_importer.py
+++ b/python/fatcat/manifest_importer.py
@@ -66,7 +66,7 @@ class FatcatManifestImporter(FatcatImporter):
total_count = int(list(db.execute("SELECT COUNT(*) FROM files_metadata;"))[0][0])
print("{} rows to process".format(total_count))
- eg = self.api.create_editgroup(fatcat_client.Editgroup(editor_id=1))
+ eg = self.api.create_editgroup(fatcat_client.Editgroup(editor_id="aaaaaaaaaaaabkvkaaaaaaaaae"))
i = 0
j = -1
for row in db.execute(QUERY):
@@ -81,7 +81,7 @@ class FatcatManifestImporter(FatcatImporter):
self.create_entity(fe, editgroup_id=eg.id)
if i > 0 and (i % size) == 0:
self.api.accept_editgroup(eg.id)
- eg = self.api.create_editgroup(fatcat_client.Editgroup(editor_id=1))
+ eg = self.api.create_editgroup(fatcat_client.Editgroup(editor_id="aaaaaaaaaaaabkvkaaaaaaaaae"))
print("Finished a batch; row {} of {} ({:.2f}%).\tTotal inserted: {}".format(
j, total_count, 100.0*j/total_count, i))
i = i + 1