notify-admin-931

This commit is contained in:
Kenneth Kehl
2023-12-04 14:53:29 -08:00
parent 03a3e7628d
commit eea6933712
2 changed files with 7 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ class User(db.Model):
return retval
def serialize(self):
return {
x = {
"id": self.id,
"name": self.name,
"email_address": self.email_address,
@@ -211,7 +211,10 @@ class User(db.Model):
"services": [x.id for x in self.services if x.active],
"can_use_webauthn": self.can_use_webauthn,
"state": self.state,
"preferred_timezone": self.preferred_timezone,
}
print(f"X = {x}")
return x
def serialize_for_users_list(self):
return {