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: