diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-02-21 10:39:45 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-02-21 10:39:45 +0100 |
commit | 45303233cd1c520398e75829cb0d17742c161fc0 (patch) | |
tree | dd1885d215f0f78ed3bfe20b42747a000c3250e5 | |
parent | 62692bc78555e8822e89865b81f4433626e3a505 (diff) | |
download | nixos-45303233cd1c520398e75829cb0d17742c161fc0.tar nixos-45303233cd1c520398e75829cb0d17742c161fc0.tar.gz nixos-45303233cd1c520398e75829cb0d17742c161fc0.tar.bz2 nixos-45303233cd1c520398e75829cb0d17742c161fc0.tar.xz nixos-45303233cd1c520398e75829cb0d17742c161fc0.zip |
...
-rwxr-xr-x | overlays/worktime/worktime/__main__.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/overlays/worktime/worktime/__main__.py b/overlays/worktime/worktime/__main__.py index 07e822f9..7de0ff75 100755 --- a/overlays/worktime/worktime/__main__.py +++ b/overlays/worktime/worktime/__main__.py | |||
@@ -650,12 +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 round_clockout_time(clockout_pull_forward_sum) >= clockout_time_pull_forward: | 653 | if round_clockout_time(clockout_pull_forward_sum) >= clockout_time_pull_forward and clockout_time_pull_forward != clockout_time: |
654 | if clockout_time_pull_forward != clockout_time: | 654 | out_text += f"…{clockout_time_pull_forward:%H:%M}" |
655 | out_text += f"…{clockout_time_pull_forward:%H:%M}" | 655 | if clockout_pull_forward_sum >= exact_clockout_time_pull_forward and exact_clockout_time_pull_forward != exact_clockout_time: |
656 | if clockout_pull_forward_sum >= exact_clockout_time_pull_forward: | 656 | tooltip += f"…{exact_clockout_time_pull_forward:%H:%M:%S}" |
657 | if exact_clockout_time_pull_forward != exact_clockout_time: | ||
658 | tooltip += f"…{exact_clockout_time_pull_forward:%H:%M:%S}" | ||
659 | else: | 657 | else: |
660 | out_text = difference_string | 658 | out_text = difference_string |
661 | else: | 659 | else: |