From 762ae1c08b1f25451ff56a8e411cc5b4592842ac Mon Sep 17 00:00:00 2001 From: Cailean Finn Date: Thu, 9 Oct 2025 12:59:05 +0100 Subject: [PATCH] only 25 allowed --- app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 7746cd5..16baf2f 100644 --- a/app.py +++ b/app.py @@ -90,8 +90,12 @@ def get_all_content(type): def get_content_by_title(title, pre_type): type = pre_type[:-1] print(title) - entries = client.entries({'query': title, 'limit': 5}) - exact_matches = [] + entries = client.entries({ + 'content_type': type, + 'query': title, + 'limit': 5, + 'fields.beta25': 'true' + }) for entry in entries: try: if getattr(entry, f'title_of_{type}') == title: