diff --git a/insertLoading.py b/insertLoading.py index 980b413..503fc35 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 len(row[0]) < 1: insertNew(db, cursor) else: