updated output
This commit is contained in:
parent
e70f5fea1c
commit
2b7bb0201c
4
main.py
4
main.py
@ -13,12 +13,14 @@ def query(query:str):
|
||||
list = search_paper(query)
|
||||
for i in list:
|
||||
if not mysql_connector.is_loaded(i['paperId']):
|
||||
print('New: '+i['q'])
|
||||
res.append({
|
||||
'id':i['paperId'],
|
||||
'q':str(i['citationStyles']['bibtex']),
|
||||
'a':str(i['abstract']),
|
||||
'score':[]
|
||||
})
|
||||
print('New: '+len(res)+'/'+len(list))
|
||||
return res
|
||||
|
||||
@app.get("/fastdoi")
|
||||
@ -28,7 +30,7 @@ async def get_reference(questions):
|
||||
if(upload2fastgpt(res)):
|
||||
for i in res:
|
||||
mysql_connector.new_load(i['id'])
|
||||
print('New: '+i['q'])
|
||||
|
||||
return res
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user