Spaces:
Running
Running
Update leaderboard.py
Browse files- leaderboard.py +2 -2
leaderboard.py
CHANGED
|
@@ -354,7 +354,7 @@ def get_elo_leaderboard():
|
|
| 354 |
return table_data
|
| 355 |
|
| 356 |
def create_backup():
|
| 357 |
-
while True:
|
| 358 |
try:
|
| 359 |
leaderboard_data = load_leaderboard()
|
| 360 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
|
@@ -370,7 +370,7 @@ def create_backup():
|
|
| 370 |
print(f"Backup created on Nextcloud: {backup_path}")
|
| 371 |
except Exception as e:
|
| 372 |
print(f"Error creating backup: {e}")
|
| 373 |
-
time.sleep(43200) # Sleep for 12 HOURS
|
| 374 |
|
| 375 |
def start_backup_thread():
|
| 376 |
backup_thread = threading.Thread(target=create_backup, daemon=True)
|
|
|
|
| 354 |
return table_data
|
| 355 |
|
| 356 |
def create_backup():
|
| 357 |
+
# while True:
|
| 358 |
try:
|
| 359 |
leaderboard_data = load_leaderboard()
|
| 360 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
|
|
|
| 370 |
print(f"Backup created on Nextcloud: {backup_path}")
|
| 371 |
except Exception as e:
|
| 372 |
print(f"Error creating backup: {e}")
|
| 373 |
+
# time.sleep(43200) # Sleep for 12 HOURS
|
| 374 |
|
| 375 |
def start_backup_thread():
|
| 376 |
backup_thread = threading.Thread(target=create_backup, daemon=True)
|