update code
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
from src import config
|
||||
import datetime
|
||||
@@ -20,7 +19,7 @@ class Backup:
|
||||
if not os.path.exists(self.archivePath):
|
||||
os.makedirs(self.archivePath)
|
||||
|
||||
if config.database.do_backup == True:
|
||||
if config.database.do_backup is True:
|
||||
self.checkpaths()
|
||||
config.database.do_backup = self.backup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user