Browse Source

Changing blog list order

jeremiewcz 1 year ago
parent
commit
8dbe82b0ac
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/models/blog.py

+ 1
- 1
app/models/blog.py View File

@@ -41,7 +41,7 @@ class BlogPost(db.Model):
41 41
 
42 42
         blogPosts = BlogPost.query.filter(filter)                       \
43 43
             .join(Channel, Channel.id==BlogPost.channel_id)             \
44
-            .order_by(BlogPost.timestamp.desc())                        \
44
+            .order_by(BlogPost.timestamp.asc())                        \
45 45
             .paginate(per_page=number).items
46 46
         return blogPosts
47 47
 

Loading…
Cancel
Save