fix: [retro_hunt] delete paused retro_hunt

This commit is contained in:
terrtia 2024-02-15 11:42:10 +01:00
parent 7d42315419
commit 48ce4a76a4
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -1530,7 +1530,7 @@ class RetroHunt:
self._set_state(state)
def delete(self):
if self.is_running() and self.get_state() != 'completed':
if self.is_running() and self.get_state() not in ['completed', 'paused']:
return None
# Delete custom rule