diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-02-21 10:38:47 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-02-21 10:38:47 +0100 |
commit | 62692bc78555e8822e89865b81f4433626e3a505 (patch) | |
tree | 8c485d5204be23ae82f5416a0358c5561e7f9a09 /overlays/worktime | |
parent | 2ae5235dd0ccba31fde53b8919ae5eb5e4186563 (diff) | |
download | nixos-62692bc78555e8822e89865b81f4433626e3a505.tar nixos-62692bc78555e8822e89865b81f4433626e3a505.tar.gz nixos-62692bc78555e8822e89865b81f4433626e3a505.tar.bz2 nixos-62692bc78555e8822e89865b81f4433626e3a505.tar.xz nixos-62692bc78555e8822e89865b81f4433626e3a505.zip |
...
Diffstat (limited to 'overlays/worktime')
-rwxr-xr-x | overlays/worktime/worktime/__main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/overlays/worktime/worktime/__main__.py b/overlays/worktime/worktime/__main__.py index d458ffdb..07e822f9 100755 --- a/overlays/worktime/worktime/__main__.py +++ b/overlays/worktime/worktime/__main__.py | |||
@@ -650,9 +650,10 @@ def time_worked(now, waybar, **args): | |||
650 | out_text = f"{difference_string}/{clockout_time:%H:%M}" | 650 | out_text = f"{difference_string}/{clockout_time:%H:%M}" |
651 | tooltip = f"{tooltip_timedelta(worked)}/{exact_clockout_time:%H:%M:%S}" | 651 | tooltip = f"{tooltip_timedelta(worked)}/{exact_clockout_time:%H:%M:%S}" |
652 | 652 | ||
653 | if clockout_pull_forward_sum > exact_clockout_time_pull_forward: | 653 | if round_clockout_time(clockout_pull_forward_sum) >= clockout_time_pull_forward: |
654 | if clockout_time_pull_forward != clockout_time: | 654 | if clockout_time_pull_forward != clockout_time: |
655 | out_text += f"…{clockout_time_pull_forward:%H:%M}" | 655 | out_text += f"…{clockout_time_pull_forward:%H:%M}" |
656 | if clockout_pull_forward_sum >= exact_clockout_time_pull_forward: | ||
656 | if exact_clockout_time_pull_forward != exact_clockout_time: | 657 | if exact_clockout_time_pull_forward != exact_clockout_time: |
657 | tooltip += f"…{exact_clockout_time_pull_forward:%H:%M:%S}" | 658 | tooltip += f"…{exact_clockout_time_pull_forward:%H:%M:%S}" |
658 | else: | 659 | else: |