Ensure we clear the reactivate flag
Otherwise a user can pause any time they like but they can never leave
This commit is contained in:
parent
fe54dcb213
commit
946de66f52
1 changed files with 1 additions and 0 deletions
|
@ -308,6 +308,7 @@ class State():
|
|||
# Check if we've gone past the reactivation time and re-activate
|
||||
if reactivate and datetime.now() > ts_to_datetime(reactivate):
|
||||
channel[_Key.ACTIVE] = True
|
||||
del channel[_Key.REACTIVATE]
|
||||
|
||||
def get_active_match_tasks(self, time: datetime | None = None) -> Generator[str, int]:
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue