Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
fix api cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu committed Mar 11, 2019
1 parent 1e0ea8c commit ab89455
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ async def cmd():
remain = [text[i] for i in range(len(text)) if not answer[i]]
if remain:
generator = api_list[each](*remain)
await generator.asend(None)
for i in range(len(text)):
result = await generator.asend(None)
if not result or not result[0]['correct']:
Expand All @@ -428,6 +429,7 @@ async def cmd():
else:
if text:
generator = search(*text)
await generator.asend(None)
for i in range(len(text)):
result = await generator.asend(None)
if not result or not result[0]['correct']:
Expand Down

0 comments on commit ab89455

Please sign in to comment.