Browse Source

[Minor] convert to tuple

Foppe Hemminga 5 năm trước cách đây
mục cha
commit
9a695947f2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      cron.py

+ 1 - 1
cron.py

@@ -102,7 +102,7 @@ def cron():
             for item in new_properties:
                 pprint(item)
                 query = """SELECT parent FROM properties where property = ?;"""
-                cur.execute(query, (item))
+                cur.execute(query, (item,))
                 parent = cur.fetchone()['parent']
                 if (parent):
                     value = player_json[parent][property]