Przeglądaj źródła

[Bugfix] Change cur to con in loop

Foppe Hemminga 5 lat temu
rodzic
commit
57e95795e5
1 zmienionych plików z 1 dodań i 1 usunięć
  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)