diff options
| author | hmj6502 <hashim@hmj6502.com> | 2025-12-18 21:54:09 +0000 |
|---|---|---|
| committer | hmj6502 <hashim@hmj6502.com> | 2025-12-18 21:54:09 +0000 |
| commit | 81f6bcf7d7a62b6d920e17a2d30512c260d6c586 (patch) | |
| tree | 6d8c76ee68f992a4a1f45e2d5e333b993f5e5ceb | |
| parent | 4a049aa2e0ade9c508bd2e62527ed615e1639546 (diff) | |
| download | lock-n-log-81f6bcf7d7a62b6d920e17a2d30512c260d6c586.tar.gz lock-n-log-81f6bcf7d7a62b6d920e17a2d30512c260d6c586.tar.bz2 lock-n-log-81f6bcf7d7a62b6d920e17a2d30512c260d6c586.zip | |
add optional tag
| -rw-r--r-- | main.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |
