From d322ed543514fffd3e7a49e059c2d43c9c82caf9 Mon Sep 17 00:00:00 2001 From: zein Date: Mon, 3 Nov 2025 08:10:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hentai_manga_model/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Hentai_manga_model/views.py b/Hentai_manga_model/views.py index 7d2312d..2cc954c 100644 --- a/Hentai_manga_model/views.py +++ b/Hentai_manga_model/views.py @@ -19,11 +19,9 @@ def manga_catalog(request): selected_tags = request.GET.getlist('tags') - - - - query = {} + if selected_tags: + query['tags'] = {'$all': selected_tags} query_key = hashlib.md5(str(query).encode()).hexdigest() cache_key = f"count_{query_key}"