Opened 9 years ago

Closed 9 years ago

#5431 closed defect (fixed)

Typo in models

Reported by: ayleph Owned by:
Priority: minor Milestone: 0.9.0
Component: programming Keywords: models.typo, bitesized
Cc: Parent Tickets:

Description

There's a typo in mediagoblin/db/models.py which will prevent code from executing as expected.

diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 97dc91d..3f36f22 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -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())

Change History (1)

comment:1 by ayleph, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in d508435.

Note: See TracTickets for help on using tickets.