浏览代码

[Minor] convert to tuple

Foppe Hemminga 5 年之前
父节点
当前提交
9a695947f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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]