summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhmjsp <hmjsp@liber8bits.com>2025-12-18 21:54:09 +0000
committerhmjsp <hmjsp@liber8bits.com>2025-12-18 21:54:09 +0000
commit4f42cc50a1996be96d142580f67f30b6d7b50170 (patch)
tree6d8c76ee68f992a4a1f45e2d5e333b993f5e5ceb
parentb0ee57754382cca8f8896d23c48e4c4d3205e657 (diff)
downloadchronologgy-4f42cc50a1996be96d142580f67f30b6d7b50170.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)