From fb5b3430252b2c6630dd6ca686b9ec2c07ce375e Mon Sep 17 00:00:00 2001 From: hubobel Date: Thu, 14 Feb 2019 17:31:08 +0100 Subject: [PATCH] SQL-Connection closed vor Prg-Ende --- FilosophieTOsql.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FilosophieTOsql.py b/FilosophieTOsql.py index 672adf8..63d4104 100644 --- a/FilosophieTOsql.py +++ b/FilosophieTOsql.py @@ -48,6 +48,7 @@ while start <= anzahl: print('Es gab ein Problem beim Schreiben des facts in die DB') connection.commit() start +=1 - time.sleep(5) - + time.sleep(1) +cursor.close() +connection.close()