summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhmj6502 <hashim@hmj6502.com>2025-12-18 21:54:09 +0000
committerhmj6502 <hashim@hmj6502.com>2025-12-18 21:54:09 +0000
commit81f6bcf7d7a62b6d920e17a2d30512c260d6c586 (patch)
tree6d8c76ee68f992a4a1f45e2d5e333b993f5e5ceb
parent4a049aa2e0ade9c508bd2e62527ed615e1639546 (diff)
downloadlock-n-log-81f6bcf7d7a62b6d920e17a2d30512c260d6c586.tar.gz
lock-n-log-81f6bcf7d7a62b6d920e17a2d30512c260d6c586.tar.bz2
lock-n-log-81f6bcf7d7a62b6d920e17a2d30512c260d6c586.zip
add optional tag
-rw-r--r--main.py7
1 files changed, 6 insertions, 1 deletions
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)