Skip to content

Commit

Permalink
Fix pomo count and icon when resting
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-ceccato committed Feb 7, 2024
1 parent 4790ff6 commit 4eb161b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terminal/easypomo_term.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ def get_online_step():
minutes, seconds = divmod(curr_time, 60)
formatted_time = f'{int(minutes):02d}:{int(seconds):02d}'

status_icon = "⌛" if not is_resting else "🚬" if is_long_resting else "🚬☕"
status_icon = "⌛" if not is_resting else "🚬☕" if is_long_resting else "☕"

if is_long_resting or is_resting:
pomo_count = pomo_count - 1

status_string = f'{pomo_count+1}{status_icon} {formatted_time}'

if is_long_resting:
status_string = f'{status_icon} {formatted_time}'

Expand Down

0 comments on commit 4eb161b

Please sign in to comment.