From 7133173a8c33c8120af6006380aecf7846e6e0bd Mon Sep 17 00:00:00 2001 From: Waishnav Date: Fri, 8 Jul 2022 21:45:45 +0530 Subject: refactoring some function --- src/bin/watcher | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bin/watcher') diff --git a/src/bin/watcher b/src/bin/watcher index d2392cd..4bea832 100644 --- a/src/bin/watcher +++ b/src/bin/watcher @@ -5,6 +5,7 @@ sys.path.insert(0, "/usr/share/Watcher/") import watch_log as x from commands import Color import commands as cmd +from analysis import weeklly_logs def help_option(): print(Color.BLUE("Watcher") + " - Minimal open source screen-time tracker\n") @@ -22,12 +23,12 @@ try: if arg == "-ds" or arg == "--day-summary": cmd.daily_summary() elif arg == "-ws" or arg == "--week-summary": - + weeklly_logs() cmd.week_summary() elif arg == "-h" or arg == "--help": help_option() elif arg == "--start": - print("Log creations started... \nif you wanna stop it, use keyboard-shortcut (Ctrl+Shift+C)") + print("Log creations started... \nif you wanna stop it, use keyboard-shortcut (Ctrl+Shift+C or Ctrl+C)") x.log_creation() elif arg == "--version": print("Version: 1.2") -- cgit v1.2.3