From d44656a8cc93a748420b372176af42b32cf6d783 Mon Sep 17 00:00:00 2001 From: Adam Kariv Date: Tue, 11 Jun 2024 23:11:08 +0300 Subject: [PATCH] Ensure dataset context is cleared always --- odds/common/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odds/common/filters.py b/odds/common/filters.py index c455cb5..26e2b13 100644 --- a/odds/common/filters.py +++ b/odds/common/filters.py @@ -39,7 +39,7 @@ async def analyze(self, dataset: Dataset) -> bool: # print('FILTER ANALYZE', dataset.id, len(dataset.resources), all([not r.status_selected for r in dataset.resources]), dataset.versions.get('resource_analyzer') != config.feature_versions.resource_analyzer) return ( len(dataset.resources) and - any([(r.status_selected and not r.status.loaded) for r in dataset.resources]) + any([(r.status_selected and not r.status_loaded) for r in dataset.resources]) ) or dataset.versions.get('resource_analyzer') != config.feature_versions.resource_analyzer async def describe(self, dataset: Dataset) -> bool: