diff --git a/comrad/app/main.py b/comrad/app/main.py index ae7dbd1..8c4a256 100644 --- a/comrad/app/main.py +++ b/comrad/app/main.py @@ -314,11 +314,13 @@ class BooleanInputPopupCard(MDDialog2): # logger.info('say_yes got:',str(x)) self.ok_to_continue=True self.response=True + self.dismiss() return self.response def say_no(self,x): # logger.info('say_no got:',str(x)) self.ok_to_continue=True self.response=False + self.dismiss() return self.response def __init__(self,msg,*x,**y): diff --git a/comrad/backend/the_telephone.py b/comrad/backend/the_telephone.py index e1dbada..37f6286 100644 --- a/comrad/backend/the_telephone.py +++ b/comrad/backend/the_telephone.py @@ -104,7 +104,7 @@ class TheTelephone(Operator): # self.log('resp_msg_b:',resp_msg_b) - resp_msg_b = phonecall.raw + resp_msg_b = phonecall.content self.log(f'{self}: Received response from Operator!')# We got back:\n\n',resp_msg_b) resp_msg_d = pickle.loads(resp_msg_b) @@ -202,7 +202,7 @@ class TheTelephone(Operator): s.headers.update({'User-Agent': 'Mozilla/5.0'}) s.mount('http://', adapter) s.mount('https://', adapter) - r = s.post(url, data=data, timeout=600, stream=True) + r = s.post(url, data=data, timeout=600) return r def get_tor_proxy_session(self):