fixed papersearching bug

This commit is contained in:
mxr612 2024-08-23 16:34:16 +08:00
parent fcc11e8ce4
commit 0f28e11323

View File

@ -12,10 +12,9 @@ app = FastAPI()
@app.get("/fastdoi")
async def get_reference(questions):
print('Search: '+questions)
questions = urllib.parse.quote(questions)
res = []
try:
list = search_paper(query)
list = search_paper(urllib.parse.quote(questions))
for i in list:
if mysql_connector.is_loaded(i['paperId']):
print(i['paperId'])