summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/main.py b/main.py
index bde6bf8..f1a4e27 100644
--- a/main.py
+++ b/main.py
@@ -45,3 +45,22 @@ if option == 't':
#print(session)
f.sesh_to_log(session, "lock-n-log.csv")
+
+else:
+ print("whenever you're ready, press enter to start", end="", flush=True)
+ input()
+ elapsed, start = timers.stopwatch()
+
+ print("\nfocus session finished!\nlogging...")
+ session = OrderedDict()
+ session["id"] = hashlib.sha256(str(start).encode('utf8')).hexdigest()
+ session["date"] = start.strftime("%Y-%m-%d")
+ session["start"] = start.strftime("%H:%M")
+ session["elapsed"] = int(elapsed.total_seconds())
+ session["type"] = "focus"
+ session["tag"] = tag
+ session["timer"] = "stopwatch"
+ session["ratio"] = 0.2
+ #print(session)
+
+ f.sesh_to_log(session, "lock-n-log.csv")