Fixes bug with backing up

This commit is contained in:
Lukasdotcom
2022-01-12 10:15:24 -05:00
parent 2857589273
commit 0c2b3a08e5
2 changed files with 2 additions and 1 deletions

0
python/fix.sql Normal file → Executable file
View File

View File

@@ -189,9 +189,10 @@ try:
minute = timeData[4]
file = f"{int(time.time())}or{month}-{day}-{year}at{hour}:{minute}.sql"
database.backUp(file)
return file
def dailyMaintenance(): # Will run daily and on boot
try:
backupDatabase()
file = backupDatabase()
writeLog(f"Ran backup on server and saved it to {file}", 18)
except:
writeLog("Database backup failed", 9)