py3k regression: sorting the wrong way in pruning

This commit is contained in:
Conor Hughes 2019-08-23 19:09:47 -07:00
parent fe574a7227
commit 9701715fd6
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class PruningEngine(object):
weekly_saved = {}
monthly_saved = {}
sorted_archives = sorted(archives, key=lambda x: x.datetime)
sorted_archives = sorted(archives, key=lambda x: x.datetime, reverse=True)
for archive in sorted_archives:
archive_day = time_utilities.day(archive.datetime)