Change method of numbering citations

This commit is contained in:
Daniel O'Connell
2023-09-30 23:36:38 +02:00
parent 5126a8d767
commit 718b177bd0
8 changed files with 102 additions and 97 deletions
+3
View File
@@ -23,6 +23,9 @@ def search_authored(query: str):
def get_followups(query):
if not query.strip():
return []
url = 'https://nlp.stampy.ai/api/search?query=' + quote(query)
response = requests.get(url).json()
return [Followup(entry['title'], entry['pageid'], entry['score']) for entry in response]