Make it work

This commit is contained in:
Tulir Asokan
2019-08-06 00:51:27 +03:00
parent 3af306abe0
commit d6ebce0425
13 changed files with 85 additions and 40 deletions
+2 -2
View File
@@ -145,8 +145,8 @@ class User(AbstractUser):
saved_contacts=self.saved_contacts, portals=self.db_portals)
def save(self, contacts: bool = False, portals: bool = False) -> None:
self.db_instance.update(tgid=self.tgid, tg_username=self.username, tg_phone=self.phone,
saved_contacts=self.saved_contacts)
self.db_instance.edit(tgid=self.tgid, tg_username=self.username, tg_phone=self.phone,
saved_contacts=self.saved_contacts)
if contacts:
self.db_instance.contacts = self.db_contacts
if portals: