From a263d3cf4655568fb27237fed97cabf4de28dcfe Mon Sep 17 00:00:00 2001 From: nineven Date: Sun, 28 Feb 2021 21:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAPP=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=EF=BC=8C=E7=BC=93=E5=AD=98=E6=9C=AA=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/storage/caches.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fir_ser/api/utils/storage/caches.py b/fir_ser/api/utils/storage/caches.py index 4a97669..c24a050 100644 --- a/fir_ser/api/utils/storage/caches.py +++ b/fir_ser/api/utils/storage/caches.py @@ -162,9 +162,7 @@ def del_cache_by_delete_app(app_id): str(now.year), str(now.month), str(now.day), app_id]) cache.delete(down_tem_key) - down_tem_key = "_".join([CACHE_KEY_TEMPLATE.get("download_times_key"), app_id]) - download_times = cache.get(down_tem_key) - cache.delete(download_times) + cache.delete("_".join([CACHE_KEY_TEMPLATE.get("download_times_key"), app_id])) cache.delete("_".join([CACHE_KEY_TEMPLATE.get("app_instance_key"), app_id]))