Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xtekky committed Apr 22, 2023
1 parent 2b30701 commit c70a257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions you/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ def create(

youChatSerpResults = findall(r'youChatSerpResults\ndata: (.*)\n\nevent', response.text)[0]
thirdPartySearchResults = findall(r"thirdPartySearchResults\ndata: (.*)\n\nevent", response.text)[0]
slots = findall(r"slots\ndata: (.*)\n\nevent", response.text)[0]
#slots = findall(r"slots\ndata: (.*)\n\nevent", response.text)[0]

text = response.text.split('}]}\n\nevent: youChatToken\ndata: {"youChatToken": "')[-1]
text = text.replace('"}\n\nevent: youChatToken\ndata: {"youChatToken": "', '')
text = text.replace('event: done\ndata: I\'m Mr. Meeseeks. Look at me.\n\n', '')

extra = {
'youChatSerpResults' : loads(youChatSerpResults),
'slots' : loads(slots)
#'slots' : loads(slots)
}

return {
Expand Down

0 comments on commit c70a257

Please sign in to comment.