From 9a9c5b176997c1aec0c1c05a9fbe3d3cc26eff99 Mon Sep 17 00:00:00 2001 From: Waishnav Date: Tue, 19 Jul 2022 22:25:50 +0530 Subject: added two commands -ds -y and -ws -pw --- src/Watcher/commands.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Watcher/commands.py') diff --git a/src/Watcher/commands.py b/src/Watcher/commands.py index 5e6826e..7d1fe97 100755 --- a/src/Watcher/commands.py +++ b/src/Watcher/commands.py @@ -90,6 +90,9 @@ def week_summary(week = os.popen('''date +"W%V-%Y"''').read()[:-1]): if week == os.popen('''date +"W%V-%Y"''').read()[:-1]: print(Color.PURPLE("\n Week's screen-time\t\t ") + Color.BLUE(to.format_time(week_screen_time))) + elif week == os.popen("""date -d 'last week' '+W%W-%Y'""").read()[:-1]: + print(Color.PURPLE("\n Previous Week's \t\t ") + Color.BLUE(to.format_time(week_screen_time))) + print(Color.PURPLE(" Screen-Time")) else: print(Color.PURPLE("\n "+week[1:3]+ "th week of\t ") + Color.BLUE(to.format_time(week_screen_time))) print(Color.PURPLE(" "+week[4:] +" screen-time\t ")) -- cgit v1.2.3