aboutsummaryrefslogtreecommitdiff
path: root/src/Watcher/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/Watcher/commands.py')
-rw-r--r--[-rwxr-xr-x]src/Watcher/commands.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Watcher/commands.py b/src/Watcher/commands.py
index 8805dac..7e1b948 100755..100644
--- a/src/Watcher/commands.py
+++ b/src/Watcher/commands.py
@@ -1,9 +1,11 @@
import os
import csv
+import uuid
import datetime
from watch_log import get_date
import analysis as anls
import time_operations as to
+import files
class Color:
@@ -71,8 +73,7 @@ def daily_summary(date = get_date()):
print(" " + Color.GREEN(f'{x:<22}') + '\t ',f'{to.format_time(y):>12}')
def week_summary(week = os.popen('''date +"W%V-%Y"''').read()[:-1]):
- user = os.getlogin()
- filename = "/home/"+user+"/.cache/Watcher/Analysis/"+week+".csv"
+ filename = files.weekly_log(week)
with open(filename, 'r') as file:
csvreader = csv.reader(file, delimiter='\t')
week_overview = dict()