could be 0 or None, same thing

refactor-time-between-check
dgtlmoon 8 months ago
parent 3c14273021
commit c9552d2319

@ -879,7 +879,7 @@ class ChangeDetectionStore:
if self.__data["watching"][uuid]['time_between_check'] == self.__data['settings']['requests']['time_between_check']: if self.__data["watching"][uuid]['time_between_check'] == self.__data['settings']['requests']['time_between_check']:
# What the old logic was, which was pretty confusing # What the old logic was, which was pretty confusing
self.__data["watching"][uuid]['time_between_check_use_default'] = True self.__data["watching"][uuid]['time_between_check_use_default'] = True
elif all(value is None for value in self.__data["watching"][uuid]['time_between_check'].values()): elif all(value is None or value == 0 for value in self.__data["watching"][uuid]['time_between_check'].values()):
self.__data["watching"][uuid]['time_between_check_use_default'] = True self.__data["watching"][uuid]['time_between_check_use_default'] = True
else: else:
# Something custom here # Something custom here

Loading…
Cancel
Save