Show More
@@ -615,7 +615,10 b' class User(Base, BaseModel):' | |||
|
615 | 615 | |
|
616 | 616 | @property |
|
617 | 617 | def emails(self): |
|
618 |
other = UserEmailMap.query() |
|
|
618 | other = UserEmailMap.query()\ | |
|
619 | .filter(UserEmailMap.user == self) \ | |
|
620 | .order_by(UserEmailMap.email_id.asc()) \ | |
|
621 | .all() | |
|
619 | 622 | return [self.email] + [x.email for x in other] |
|
620 | 623 | |
|
621 | 624 | @property |
@@ -624,7 +627,10 b' class User(Base, BaseModel):' | |||
|
624 | 627 | return [x.api_key for x in auth_tokens] |
|
625 | 628 | |
|
626 | 629 | def get_auth_tokens(self): |
|
627 |
return UserApiKeys.query() |
|
|
630 | return UserApiKeys.query()\ | |
|
631 | .filter(UserApiKeys.user == self)\ | |
|
632 | .order_by(UserApiKeys.user_api_key_id.asc())\ | |
|
633 | .all() | |
|
628 | 634 | |
|
629 | 635 | @property |
|
630 | 636 | def feed_token(self): |
General Comments 0
You need to be logged in to leave comments.
Login now