Fixed possible askquestion bug
This commit is contained in:
parent
968b4b1064
commit
cec1fca7d4
@ -65,11 +65,6 @@ class VevoxQA:
|
||||
def askquestion(self, question):
|
||||
self.ws.send(self.askws.format(self.topicId, question, self.requestid))
|
||||
data = loads(self.ws.recv())
|
||||
while "message" not in data or data["message"] != "DeviceDiscussionMessageList":
|
||||
data = loads(self.ws.recv())
|
||||
|
||||
return data["data"]["messages"][0]["messageId"]
|
||||
|
||||
|
||||
# Like a question returns true if successful
|
||||
def likequestion(self, qid):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user