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: