Refresh and added usage tracking
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user