Browse Source

[Bugfix] Slowing down

Foppe Hemminga 5 years ago
parent
commit
532fac2e82
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cron.py

+ 2 - 1
cron.py

@@ -77,6 +77,7 @@ def cron():
             player_json = json.loads(response.text)
             # pprint(faction_json)
         if 'error' in player_json:
+            print(f"{row['maintainer']}")
             pprint(faction_json)
             break
 
@@ -133,7 +134,7 @@ def cron():
                     value = 0
                 print(f"item: {item} -> value: {value}")
                 update_missing_value(row['maintainer'], row['player'], item, value)
-        time.sleep(1)
+        time.sleep(2)
     conn.close()
 
 if __name__ == '__main__':