mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +01:00
Ignore typing of the result dict for online, web page scrape
This commit is contained in:
parent
ab81b01fcb
commit
03544efde2
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ async def execute_information_collection(
|
||||||
if isinstance(result, dict) and ChatEvent.STATUS in result:
|
if isinstance(result, dict) and ChatEvent.STATUS in result:
|
||||||
yield result[ChatEvent.STATUS]
|
yield result[ChatEvent.STATUS]
|
||||||
else:
|
else:
|
||||||
online_results = result
|
online_results: Dict[str, Dict] = result # type: ignore
|
||||||
this_iteration.onlineContext = online_results
|
this_iteration.onlineContext = online_results
|
||||||
|
|
||||||
elif this_iteration.data_source == ConversationCommand.Webpage:
|
elif this_iteration.data_source == ConversationCommand.Webpage:
|
||||||
|
@ -208,7 +208,7 @@ async def execute_information_collection(
|
||||||
if isinstance(result, dict) and ChatEvent.STATUS in result:
|
if isinstance(result, dict) and ChatEvent.STATUS in result:
|
||||||
yield result[ChatEvent.STATUS]
|
yield result[ChatEvent.STATUS]
|
||||||
else:
|
else:
|
||||||
direct_web_pages: Dict[str, Dict] = result
|
direct_web_pages: Dict[str, Dict] = result # type: ignore
|
||||||
|
|
||||||
webpages = []
|
webpages = []
|
||||||
for query in direct_web_pages:
|
for query in direct_web_pages:
|
||||||
|
|
Loading…
Reference in a new issue