fix contact order on alias contact manager page
This commit is contained in:
parent
7b2d86552b
commit
6cccb450b0
|
@ -805,7 +805,7 @@ class Alias(db.Model, ModelMixin):
|
||||||
def get_contacts(self, page=0):
|
def get_contacts(self, page=0):
|
||||||
contacts = (
|
contacts = (
|
||||||
Contact.filter_by(alias_id=self.id)
|
Contact.filter_by(alias_id=self.id)
|
||||||
.order_by(Contact.created_at)
|
.order_by(Contact.created_at.desc())
|
||||||
.limit(PAGE_LIMIT)
|
.limit(PAGE_LIMIT)
|
||||||
.offset(page * PAGE_LIMIT)
|
.offset(page * PAGE_LIMIT)
|
||||||
.all()
|
.all()
|
||||||
|
|
Loading…
Reference in a new issue