Skip to content

Commit

Permalink
Fix bug that prevented timer pause at min_empty_waitlist_seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelercj committed Jan 19, 2023
1 parent 22732e1 commit 53b4624
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.briefcase]
project_name = "zq"
bundle = "chris.wheeler.zq-timer"
version = "1.0.1"
version = "1.0.2"
url = "https://github.com/wheelercj/zq"
license = "MIT license"
author = 'Chris Wheeler'
Expand Down
2 changes: 1 addition & 1 deletion src/zq/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from textwrap import dedent


VERSION = "1.0.1"
VERSION = "1.0.2"
color_pattern = re.compile(
r"\[(?P<color>#[0-9a-fA-F]{6})\](?P<body>[^\[]*?)\[/(?:#[0-9a-fA-F]{6})?\]"
)
Expand Down
9 changes: 8 additions & 1 deletion src/zq/zq.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@ def tick(self) -> None:
and self.individual_seconds
and not self.paused
and (
(self.current_mode == Mode.INDIVIDUAL and len(self.student_names) > 0)
(
self.current_mode == Mode.INDIVIDUAL
and (len(self.student_names) > 1)
or (
len(self.student_names) == 1
and self.student_names[0].endswith("-minute break")
)
)
or self.individual_seconds > self.min_empty_waitlist_seconds
)
):
Expand Down

0 comments on commit 53b4624

Please sign in to comment.