diff --git a/insertLoading.py b/insertLoading.py index 980b413..8d7f297 100644 --- a/insertLoading.py +++ b/insertLoading.py @@ -46,7 +46,7 @@ def updateLast(db, cursor): cursor.execute(sql) row = cursor.fetchone() - if not row[0]: + if not row: insertNew(db, cursor) else: