Truncate PDF URL

This commit is contained in:
2023-03-17 23:23:36 -04:00
parent 20b13af982
commit 1d4b5941e4

View File

@@ -27,6 +27,8 @@ async def search(txt):
ref = doc.find('div', {'id': 'citation'}).get_text()
pdf = doc.find('embed', {'id': 'pdf'})['src']
pdf = pdf[:(pdf.find(".pdf"+4))]
return {
'ref': ref,