Refresh and added usage tracking

This commit is contained in:
Hannes
2026-04-24 00:47:51 +02:00
parent 8519d9f62e
commit 477b1bf985
45 changed files with 726 additions and 166 deletions
+2
View File
@@ -1,5 +1,6 @@
import re
from datetime import timedelta
import subprocess
def parse_timecode(timecode):
parts = list(map(int, timecode.split(':')))
@@ -18,6 +19,7 @@ def add_timecodes(*timecodes):
return f"{hours:02}:{minutes:02}:{seconds:02}"
if __name__ == "__main__":
subprocess.run(["python", "/home/honney/.bin/tracker.py", "add", "time_add"])
timecodes = input("Enter timecodes separated by spaces: ").split()
total = add_timecodes(*timecodes)
print("Total time:", total)