[TYPO]On backup plan.py

This commit is contained in:
Fabien BOURGEOIS 2017-07-19 08:06:45 +02:00
parent 981366a1a3
commit 528425a579

View File

@ -29,11 +29,9 @@ def notkeep(fname):
if delta.days > 365:
return True
elif delta.days > 31:
# if (delta.days %% 30) != 0:
if save_date.day != 1:
return True
elif delta.days > 7:
# if (delta.days %% 7) != 0:
if (save_date.weekday() != 0) and (save_date.day != 1):
return True
else: