add code to reconnect to database if connection is gettring broken or database getting a reboot

This commit is contained in:
2025-03-08 11:32:19 +01:00
parent 4b51ddc84d
commit 31d2e7ea55
3 changed files with 26 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ from server.Files import save_file
import json, os
class LocalStorage:
def __init__(self, file_path:str):
def __init__(self, file_path:str, **kwargs):
self.save_folder_dict = {
"standard": "01_Standard",
"duel": "02_Duels",