From ba2d9d15a54858fc1ccea50b2138f3a649b1e0d5 Mon Sep 17 00:00:00 2001 From: Guy Alexis Date: Mon, 20 Nov 2023 12:13:18 +0000 Subject: [PATCH] fix bug : Calculating stats for this user. Check back later #482 --- sources/manager_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/manager_download.py b/sources/manager_download.py index e2160f7..eb6128e 100644 --- a/sources/manager_download.py +++ b/sources/manager_download.py @@ -184,7 +184,7 @@ class DownloadManager: else: res = DownloadManager._REMOTE_RESOURCES_CACHE[resource] DBM.g(f"\tQuery '{resource}' loaded from cache!") - if res.status_code in [200, 202]: + if res.status_code == 200 or res.status_code == 202: if convertor is None: return res.json() else: