From 81f6bcf7d7a62b6d920e17a2d30512c260d6c586 Mon Sep 17 00:00:00 2001 From: hmj6502 Date: Thu, 18 Dec 2025 21:54:09 +0000 Subject: add optional tag --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f4f7a03..fce26f6 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,11 @@ import formatting as f print("welcome to lock-n-log, the best way to organise and analyse your focus time!") +print("tag for session? ", end="", flush=True) +tag = input() +if tag == "": + tag = "work" + valid_timer_types = ('t', 's') option = False while not option: @@ -42,7 +47,7 @@ if option == 't': session["start"] = time.strftime("%H:%M") session["elapsed"] = timer_length * 60 session["type"] = "focus" - session["tag"] = "work" + session["tag"] = tag session["timer"] = "timer" session["ratio"] = 0.2 #print(session) -- cgit v1.2.3