From bfbd8324ac1d79bd92a34b54e1687e54b90f7a2f Mon Sep 17 00:00:00 2001 From: Raul Siles <5730357+raulsiles@users.noreply.github.com> Date: Thu, 27 Feb 2020 14:20:13 +0100 Subject: [PATCH] Fix to insert into SQLite the last set of phone numbers Fix to insert into SQLite the last set of phones (the number of missing phone numbers depends on the percentile) --- hash2phone/hashmap_gen_sqlite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hash2phone/hashmap_gen_sqlite.py b/hash2phone/hashmap_gen_sqlite.py index 65b0089..2e7396a 100644 --- a/hash2phone/hashmap_gen_sqlite.py +++ b/hash2phone/hashmap_gen_sqlite.py @@ -64,6 +64,7 @@ print("\r%d%% completed" % int(100 - (phone_stop-num)/percentile), end="") c.executemany(sql_insert, phones_temp) phones_temp = list() -conn.commit() +c.executemany(sql_insert, phones_temp) +print("\r100% completed")conn.commit() conn.close() print()