Skip to content

Commit

Permalink
Move pause time to run time/total time for resume_clocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Latent-Logic committed Sep 16, 2024
1 parent 3e92dcf commit 323066d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions print_resume_clocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Iterable, Tuple
from zoneinfo import ZoneInfo

from test_tracker import calc_timer
from test_tracker import calc_timer, calc_time_so_far
from twitch_dono_clock.donos import BITS, SUBS, T1, T2, T3, TIPS, Donos
from twitch_dono_clock.end import End
from twitch_dono_clock.pause import Pause
Expand Down Expand Up @@ -36,7 +36,10 @@ def load_csv(pause_file: Path, tz: tzinfo):
Pause()._minutes = pause
End().end_ts = pause_end
loc_time = pause_end.astimezone(tz)
print(f"{loc_time.isoformat()}\t{pause} \t{calc_timer(handle_end=False)}\t${Donos().calc_dollars():.02f}")
print(
f"{loc_time.isoformat()}\t{calc_timer(handle_end=False)}\t${Donos().calc_dollars():7.02f}"
f"\t{calc_time_so_far().total_seconds()/60:7.2f}/{Donos().calc_total_minutes():.2f}"
)
try:
pause_end, pause = next(pause_end_itr)
except StopIteration:
Expand Down

0 comments on commit 323066d

Please sign in to comment.