aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-03-05 10:30:56 -0700
committerCody Hiar <codyfh@gmail.com>2018-03-05 10:30:56 -0700
commit70366911a9b5ddedbfe8b02b6447f2738f306239 (patch)
treec112cdca1ad7c26ef352c7e74f5eda32b3a59e72
parenta91741fa66cd99cb4a8e3741110748d33d307fe9 (diff)
Fixed missing var
-rwxr-xr-xcli.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli.py b/cli.py
index 8b7afba..59d63e0 100755
--- a/cli.py
+++ b/cli.py
@@ -68,6 +68,8 @@ class WeekFuzzyCompleter(Completer):
"""
if dt.weekday() != 0:
monday_dt = dt - datetime.timedelta(days=dt.weekday())
+ else:
+ monday_dt = dt
sunday_dt = monday_dt + datetime.timedelta(days=6)
return '{} to {}'.format(
monday_dt.strftime('%Y-%m-%d'), sunday_dt.strftime('%Y-%m-%d'))