From 0a623bbb41f73e3dc6b348c46213fa0a21857bcc Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 28 Sep 2022 08:57:34 -0600 Subject: [PATCH] Incorrect boolean logic --- frigate/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/storage.py b/frigate/storage.py index bd328e91f..3bd13aa12 100644 --- a/frigate/storage.py +++ b/frigate/storage.py @@ -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()