summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-20 02:34:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-20 02:34:10 -0700
commit693b9a0bb99aa6a691357c1e7c2b018150a3380b (patch)
tree749ad4e78b599da2a4e2c8d7a34ef78318dc892b
parent0c400f377bb02c3ea6290de865650f00f1f1abbd (diff)
downloadfatcat-693b9a0bb99aa6a691357c1e7c2b018150a3380b.tar.gz
fatcat-693b9a0bb99aa6a691357c1e7c2b018150a3380b.zip
fix bug in new batch create python importer
-rw-r--r--python/fatcat/importer_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat/importer_common.py b/python/fatcat/importer_common.py
index 9949d847..c1566e65 100644
--- a/python/fatcat/importer_common.py
+++ b/python/fatcat/importer_common.py
@@ -43,7 +43,7 @@ class FatcatImporter:
def process_batch(self, source, size=50):
"""Reads and processes in batches (not API-call-per-)"""
for rows in grouper(source, size):
- self.create_batch(rows, eg.id)
+ self.create_batch(rows)
def process_csv_source(self, source, group_size=100, delimiter=','):
reader = csv.DictReader(source, delimiter=delimiter)