Fix #5431 - Typo in models
authorAndrew Browning <ayleph@thisshitistemp.com>
Tue, 1 Mar 2016 05:27:50 +0000 (00:27 -0500)
committerAndrew Browning <ayleph@thisshitistemp.com>
Tue, 1 Mar 2016 05:28:42 +0000 (00:28 -0500)
Fix a typo in models.py.

mediagoblin/db/models.py

index 97dc91dc96ee862918b67eceb17307e6d97ed385..3f36f2279273b15b4d0b722d1129d9473d8c6a89 100644 (file)
@@ -607,7 +607,7 @@ class MediaEntry(Base, MediaEntryMixin, CommentingMixin):
         if ascending:
             query = query.order_by(Comment.added.asc())
         else:
-            qury = query.order_by(Comment.added.desc())
+            query = query.order_by(Comment.added.desc())
         
         return FakeCursor(query, lambda c:c.comment())