comrad update!

master
marxzuckerburg 4 years ago
parent 2736cc5bc6
commit 3845d9f827

@ -210,9 +210,9 @@ class LoginScreen(BaseScreen):
logger.info(f'passkey login succeeded')
# get new data
res = await commie.get_updates()
if not res.get('res_login',{}).get('success'):
return {'success':False,'res_refresh':refresh}
# res = await commie.get_updates()
# if not res.get('res_login',{}).get('success'):
# return {'success':False,'res_refresh':refresh}
# otherwise, ok
self.login_status.text=f'Welcome back, Comrad @{un}'

@ -98,8 +98,8 @@ class MapWidget(MDDialog2):
self.label_layout.cols=1
self.label_layout.row_default_height='25sp'
self.label_layout.row_force_default='25sp'
self.label_layout.rows=5
self.label_layout.pos_hint={'y':0}
self.label_layout.rows=10
self.label_layout.pos_hint={'y':1}
self.label_layout.size_hint=(None,None)
self.label_layout.width=Window.size[0]
self.label_layout.height='300sp'

@ -124,13 +124,13 @@ class TheTelephone(Operator):
def comrad_request(self,url,allow_clearnet = ALLOW_CLEARNET):
if '.onion' in url or not allow_clearnet:
return self.tor_request(url)
return requests.get(url,timeout=600)
return requests.get(url,timeout=60)
async def comrad_request_async(self,url,allow_clearnet=ALLOW_CLEARNET):
import requests_async as requests
if '.onion' in url or not allow_clearnet:
return await self.tor_request_async(url)
return await requests.get(url,timeout=600)
return await requests.get(url,timeout=60)
def tor_request(self,url):

Loading…
Cancel
Save