Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaisheng committed Jul 26, 2024
1 parent 3a6275a commit 6ed5cfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ async def parse(self, context):
base_url = "https://arxiv.paperswithcode.com/api/v0/papers/"
_paper = {}
arxiv_res = context.get("response")
if len()==0:
print('no respomsr data')
return
async with aiohttp.ClientSession() as session:
for result in arxiv_res:
paper_id = result.get_short_id()
Expand Down

0 comments on commit 6ed5cfb

Please sign in to comment.