From ca180d9fc369d2646583f52c63a3471cab28c0fc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 24 Apr 2019 16:32:07 -0700 Subject: identifier is column 2; don't stdout SKIPPING notice --- arabesque.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arabesque.py b/arabesque.py index dd91ce6..68ba785 100755 --- a/arabesque.py +++ b/arabesque.py @@ -645,14 +645,14 @@ def dump_json(read_db, only_identifier_hits=False, max_per_identifier=None): last_ident = None ident_count = 0 for row in cur: - if last_ident and row[0] == last_ident: + if last_ident and row[1] == last_ident: ident_count += 1 if max_per_identifier and ident_count > max_per_identifier: - print("SKIPPING identifier maxed out: {}".format(last_ident)) + sys.stderr.write("SKIPPING identifier maxed out: {}".format(last_ident)) continue else: ident_count = 0 - last_ident = row[0] + last_ident = row[1] print(json.dumps(dict(row))) def main(): -- cgit v1.2.3