diff options
author | Cody Hiar <codyfh@gmail.com> | 2018-03-05 10:30:56 -0700 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2018-03-05 10:30:56 -0700 |
commit | 70366911a9b5ddedbfe8b02b6447f2738f306239 (patch) | |
tree | c112cdca1ad7c26ef352c7e74f5eda32b3a59e72 /cli.py | |
parent | a91741fa66cd99cb4a8e3741110748d33d307fe9 (diff) |
Fixed missing var
Diffstat (limited to 'cli.py')
-rwxr-xr-x | cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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')) |