fixed papersearching bug
This commit is contained in:
parent
fcc11e8ce4
commit
0f28e11323
3
main.py
3
main.py
@ -12,10 +12,9 @@ app = FastAPI()
|
|||||||
@app.get("/fastdoi")
|
@app.get("/fastdoi")
|
||||||
async def get_reference(questions):
|
async def get_reference(questions):
|
||||||
print('Search: '+questions)
|
print('Search: '+questions)
|
||||||
questions = urllib.parse.quote(questions)
|
|
||||||
res = []
|
res = []
|
||||||
try:
|
try:
|
||||||
list = search_paper(query)
|
list = search_paper(urllib.parse.quote(questions))
|
||||||
for i in list:
|
for i in list:
|
||||||
if mysql_connector.is_loaded(i['paperId']):
|
if mysql_connector.is_loaded(i['paperId']):
|
||||||
print(i['paperId'])
|
print(i['paperId'])
|
||||||
|
Loading…
Reference in New Issue
Block a user