Skip to content

Commit

Permalink
[FIX] flake8 and pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
archetipo committed Jul 23, 2015
1 parent fab5edb commit e4b2c2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions auto_backup/model/backup_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,18 +359,18 @@ def schedule_backup(self):
except Exception:
pass

"""Remove all old files (on local server) in case this is configured..
This is done after the SFTP writing to prevent unusual behaviour:
If the user would set local back-ups to be kept 0 days and the SFTP
to keep backups xx days there wouldn't be any new back-ups added
to the SFTP.
If we'd remove the dump files before they're writen to the SFTP
there willbe nothing to write. Meaning that if an user doesn't want
to keep back-ups locally and only wants them on the SFTP
(NAS for example) there wouldn't be any writing to the
remote server if this if statement was before the SFTP write method
right above this comment.
"""
# Remove all old files (on local server) in case this is configured..
# This is done after the SFTP writing to prevent unusual behaviour:
# If the user would set local back-ups to be kept 0 days and the SFTP
# to keep backups xx days there wouldn't be any new back-ups added
# to the SFTP.
# If we'd remove the dump files before they're writen to the SFTP
# there willbe nothing to write. Meaning that if an user doesn't want
# to keep back-ups locally and only wants them on the SFTP
# (NAS for example) there wouldn't be any writing to the
# remote server if this if statement was before the SFTP write method
# right above this comment.

if rec.autoremove is True:
dir = rec.bkp_dir
# Loop over all files in the directory.
Expand Down
2 changes: 1 addition & 1 deletion auto_backup/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
#
##############################################################################

from . import test_auto_backup
from . import test_auto_backup

0 comments on commit e4b2c2c

Please sign in to comment.