check backup only if backup enables

This commit is contained in:
WorldTeacher
2024-07-30 09:41:58 +02:00
parent 5cf59e29a2
commit e3d8403b7f

View File

@@ -9,7 +9,9 @@ class Backup:
self.source_path = config.database.path + "/" + config.database.name
self.backup_path = config.database.backupLocation + "/" + config.database.name
self.backup = False
self.checkpaths()
if config.database.do_backup == True:
self.checkpaths()
config.database.do_backup = self.backup
def checkpaths(self):
if os.path.exists(config.database.backupLocation):