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 654e971 commit ed507cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def _adaptor(self):
print("Worker queue is empty. break...")
break
else:
task: dict = await self.worker.get()
task: dict = self.worker.get_nowait()
print(f"Got task: {task}")
if task.get("pending"):
print("Handling pending task...")
Expand All @@ -112,7 +112,7 @@ def _progress(self):
return p

async def runtime(self, context: dict):
keyword_ = context.get("keyword")
keyword_ = context.get("keyword").lower()
print(f"Searching for keyword: {keyword_}")
try:
res = arxiv.Search(
Expand Down

0 comments on commit ed507cd

Please sign in to comment.