comrad update!

master
marxzuckerburg 4 years ago
parent 43d6132556
commit 01f6d17e89

@ -248,8 +248,11 @@ class ProfileScreen(ProtectedScreen):
# raise Exception(f'Got filename! {fnfn}')
if not os.path.exists(fnfn): return
ext=os.path.splitext(fnfn)[1]
ofnfn=os.path.join(PATH_AVATARS,self.app.username+ext)
shutil.copyfile(fnfn,ofnfn)
ofnfn=os.path.join(PATH_AVATARS,self.app.username+'.png')
# shutil.copyfile(fnfn,ofnfn)
from PIL import Image as pImage
im = pImage.open(fnfn)
im.save(ofnfn)
# re-get circular image
# self.avatar_layout.remove_widget(self.avatar)

@ -142,10 +142,10 @@ class Crypt(Logger):
k_b=self.package_key(k,prefix=prefix)
k_b_hash = self.hash(k_b)
with self.db.transaction():
del self.db[k_b_hash]
v = self.db.command('get',k_b_hash)
self.log('<--',v)
return True
return v
def get(self,k,prefix=''):

Loading…
Cancel
Save