浏览代码

[Bugfix] Change cur to con in loop

Foppe Hemminga 5 年之前
父节点
当前提交
57e95795e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cron.py

+ 1 - 1
cron.py

@@ -59,7 +59,7 @@ def cron():
     conn.row_factory = sqlite3.Row
     cur = conn.cursor()
 
-    for row in cur.execute(query_first):
+    for row in conn.execute(query_first):
         print(f"{row['maintainer']} - {row['api']} - {row['player']} - {row['property']}")
         url = f"https://api.torn.com/user/{row['player']}?selections=personalstats,basic&key={row['api']}"
         print(url)