From 70366911a9b5ddedbfe8b02b6447f2738f306239 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 5 Mar 2018 10:30:56 -0700 Subject: Fixed missing var --- cli.py | 2 ++ 1 file changed, 2 insertions(+) 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')) -- cgit v1.2.3