فهرست منبع

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