Incorrect boolean logic

This commit is contained in:
Nick Mowen 2022-09-28 08:57:34 -06:00
parent aab5d28f8a
commit 0a623bbb41

View File

@ -158,7 +158,7 @@ class StorageMaintainer(threading.Thread):
"""Check every 5 minutes if storage needs to be cleaned up."""
while not self.stop_event.wait(300):
if not self.camera_storage_stats or False in [
if not self.camera_storage_stats or True in [
r["needs_refresh"] for r in self.camera_storage_stats.values()
]:
self.calculate_camera_bandwidth()