소스 검색

[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]