Simple Fix
This commit is contained in:
@@ -28,7 +28,7 @@ async def search(txt):
|
|||||||
ref = doc.find('div', {'id': 'citation'}).get_text()
|
ref = doc.find('div', {'id': 'citation'}).get_text()
|
||||||
pdf = doc.find('embed', {'id': 'pdf'})['src']
|
pdf = doc.find('embed', {'id': 'pdf'})['src']
|
||||||
|
|
||||||
pdf = pdf[:(pdf.find(".pdf"+4))]
|
pdf = pdf[:(pdf.find(".pdf")+4)]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'ref': ref,
|
'ref': ref,
|
||||||
|
|||||||
Reference in New Issue
Block a user