Ver Fonte

fix contact order on alias contact manager page

Son NK há 5 anos atrás
pai
commit
6cccb450b0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/models.py

+ 1 - 1
app/models.py

@@ -805,7 +805,7 @@ class Alias(db.Model, ModelMixin):
     def get_contacts(self, page=0):
         contacts = (
             Contact.filter_by(alias_id=self.id)
-            .order_by(Contact.created_at)
+            .order_by(Contact.created_at.desc())
             .limit(PAGE_LIMIT)
             .offset(page * PAGE_LIMIT)
             .all()