From 0fc795d1c43f58d5988b3073ec4c811f7cca7425 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Thu, 3 Sep 2020 17:08:25 +0200 Subject: [PATCH] Add commit after copy_from calls --- bin/system_imports.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/system_imports.py b/bin/system_imports.py index 58e3fba..0e8761f 100755 --- a/bin/system_imports.py +++ b/bin/system_imports.py @@ -44,4 +44,7 @@ if __name__ == '__main__': with open(path, "rb") as fd: cursor.copy_from(fd, table); + # If we don't commit the data does not actually get copied + db.conn.commit() + print("Done")