diff options
author | 2022-07-08 21:45:45 +0530 | |
---|---|---|
committer | 2022-07-08 21:45:45 +0530 | |
commit | 7133173a8c33c8120af6006380aecf7846e6e0bd (patch) | |
tree | 308aaacaf8809971742ca11014a156f38a914ffa /src/bin | |
parent | fc1c852d9263fc43f27792f38a8e68674e944629 (diff) | |
download | shopno-os-log-sync-7133173a8c33c8120af6006380aecf7846e6e0bd.tar.gz shopno-os-log-sync-7133173a8c33c8120af6006380aecf7846e6e0bd.zip |
refactoring some function
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/watcher | 5 |
1 files changed, 3 insertions, 2 deletions
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") |