pull/20/head
quadrismegistus 4 years ago
parent 6bd1f8c1b1
commit da34b0f529

@ -108,8 +108,13 @@ class PostScreen(ProtectedScreen):
if hasattr(self,'post_textfield'): self.post_textfield.text=''
post_json = {'author':self.app.username, 'timestamp':time.time()}
key=list(self.app.keys.keys())[0]
post_json['to_name']='...?'
keys=[k for k in self.app.keys if k!=self.app.username]
if keys:
key=keys[0]
post_json['to_name']=key
self.recipient=key
else:
post_json['to_name']='...'
self.post_card = post = PostCard(post_json)
self.post_card.add_widget(get_separator('15sp'),1)

@ -458,8 +458,12 @@ class Api(object):
if not res0: return None
if type(res0)==list:
for d in res0:
if 'val' in d and d['val']:
d['val']=jsonize_dat(d['val'])
try:
if 'val' in d and d['val']:
d['val']=jsonize_dat(d['val'])
except (TypeError,ValueError) as e:
self.log('!!!!',e)
pass
return res0
else:
return json.loads(base64.b64decode(res0).decode('utf-8'))

@ -1,7 +1,7 @@
"""
Package for interacting on the network at a high level.
"""
STORE_ANYWHERE=True
STORE_ANYWHERE=False
import random

Loading…
Cancel
Save