def set_password_hash(self, new_password_hash: str):
     self.instance.userPasswordHash = new_password_hash
     Session.commit()
 def set_user_info(self, info: str):
     self.instance.userInfo = info
     Session.commit()
 def set_username(self, username: str):
     self.instance.userName = username
     Session.commit()
Exemple #4
0
 def set_name(self, collection_name: str):
     self.instance.collectionName = collection_name
     Session.commit()
Exemple #5
0
 def set_description(self, description: str):
     self.instance.collectionDescription = description
     Session.commit()
 def change_card_inside(self, new_inside: dict) -> bool:
     if new_inside:
         self.instance.cardInside = new_inside
         Session.commit()
     return new_inside is not None