Преглед на файлове

Weird error in 'tokenrefills'

Foppe Hemminga преди 5 години
родител
ревизия
dffcec748b
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      cron.py

+ 3 - 0
cron.py

@@ -108,6 +108,9 @@ def cron():
                     new_properties.append(item)
             if len(new_properties) > 0:
                 for item in new_properties:
+                    if item == 'tokenrefills':
+                        # Weird error
+                        continue
                     query_third = """SELECT parent FROM properties where property = ?;"""
                     cur.execute(query_third, (item,))
                     parent = cur.fetchone()['parent']