Browse Source

only 25 allowed

2025
Cailean Finn 4 days ago
parent
commit
762ae1c08b
  1. 8
      app.py

8
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:

Loading…
Cancel
Save