Update timestamp helper functions

This commit is contained in:
JonnyWong16 2020-08-03 10:17:25 -07:00
parent b54576f08f
commit 4285b55c15
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 15 additions and 15 deletions

View file

@ -292,9 +292,9 @@ def make_backup(cleanup=False, scheduler=False):
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_plexpydbcorrupt'})
if scheduler:
backup_file = 'tautulli.backup-{}{}.sched.db'.format(helpers.now(no_sep=True), corrupt)
backup_file = 'tautulli.backup-{}{}.sched.db'.format(helpers.now(), corrupt)
else:
backup_file = 'tautulli.backup-{}{}.db'.format(helpers.now(no_sep=True), corrupt)
backup_file = 'tautulli.backup-{}{}.db'.format(helpers.now(), corrupt)
backup_folder = plexpy.CONFIG.BACKUP_DIR
backup_file_fp = os.path.join(backup_folder, backup_file)