Commit 39da3971 authored by Matt Traudt's avatar Matt Traudt
Browse files

Stop cleanup from compressing/deleting the current day's data file

parent 0d6ec2d9
...@@ -42,7 +42,7 @@ def _get_older_files_than(dname, num_days_ago, extensions): ...@@ -42,7 +42,7 @@ def _get_older_files_than(dname, num_days_ago, extensions):
today = date.fromtimestamp(time_now()) today = date.fromtimestamp(time_now())
oldest_day = today - timedelta(days=num_days_ago) oldest_day = today - timedelta(days=num_days_ago)
working_day = oldest_day working_day = oldest_day
while working_day < today: while working_day <= today:
for ext in extensions: for ext in extensions:
pattern = os.path.join( pattern = os.path.join(
dname, '**', '{}*{}'.format(working_day, ext)) dname, '**', '{}*{}'.format(working_day, ext))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment