From b860e458c307dc20cae114a5910a9c04268fab68 Mon Sep 17 00:00:00 2001 From: ManuelW Date: Sat, 11 May 2024 11:25:21 +0200 Subject: [PATCH] DB config --- insertLoading.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/insertLoading.py b/insertLoading.py index 503fc35..4c4b722 100644 --- a/insertLoading.py +++ b/insertLoading.py @@ -46,7 +46,8 @@ def updateLast(db, cursor): cursor.execute(sql) row = cursor.fetchone() - if len(row[0]) < 1: + print("row:", row[0]) + if row[0] < 1: insertNew(db, cursor) else: