diff --git a/scripts/migrate_logs_to_dot9_db.py b/scripts/migrate_logs_to_dot9_db.py index b22053ecc..fbb2dee17 100755 --- a/scripts/migrate_logs_to_dot9_db.py +++ b/scripts/migrate_logs_to_dot9_db.py @@ -78,7 +78,7 @@ def visit(arg, dirname, filenames): cur.execute('INSERT INTO jids (jid) VALUES (?)', (jid,)) con.commit() - cur.execute('SELECT COUNT(*) FROM jids') + cur.execute('SELECT MAX(jid) FROM jids') JID_ID = cur.fetchone()[0] f = open(path_to_text_file, 'r')