diff options
| author | 2018-09-27 13:16:27 +0100 | |
|---|---|---|
| committer | 2018-09-27 13:16:27 +0100 | |
| commit | 0fb947dc5adac9a9f4c384f9e9dddad3952afdb5 (patch) | |
| tree | e4b0f107670a459fd33eab5057b0a72bf632480b | |
| parent | Open module files explicitly as utf8 in ModuleManager (diff) | |
| signature | ||
'full_location' -> 'location' in database_backup.py
| -rw-r--r-- | modules/database_backup.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/database_backup.py b/modules/database_backup.py index 45bc730f..51fe3990 100644 --- a/modules/database_backup.py +++ b/modules/database_backup.py @@ -16,15 +16,15 @@ class Module(object): @Utils.hook("timer.database-backup") def backup(self, event): - full_location = self.bot.database.full_location - files = glob.glob("%s.*" % full_location) + location = self.bot.database.location + files = glob.glob("%s.*" % ocation) files = sorted(files) if len(files) == 5: os.remove(files[0]) suffix = datetime.datetime.now().strftime("%y-%m-%d.%H:%M:%S") - backup_file = "%s.%s" % (full_location, suffix) - shutil.copy2(full_location, backup_file) + backup_file = "%s.%s" % (location, suffix) + shutil.copy2(location, backup_file) event["timer"].redo() |
