sohini2689 / gaewiki

Automatically exported from code.google.com/p/gaewiki
0 stars 0 forks source link

Changes in open-reading:no #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
gaewiki/model.py:302
            pages = cls.gql('WHERE pread = :1 ORDER BY -updated', True).fetch(20)

            pages = cls.gql('WHERE pread = :1 ORDER BY updated DESC', True).fetch(20)

Original issue reported on code.google.com by h.rayflood on 20 Oct 2011 at 9:29

GoogleCodeExporter commented 8 years ago
patch style:
diff -urN -x '*.yaml' -x '*.bat' -x '*.pyc' gaewiki.orig/gaewiki/model.py 
gaewiki/gaewiki/model.py
--- gaewiki.orig/gaewiki/model.py   2011-08-05 01:20:06 +0900
+++ gaewiki/gaewiki/model.py    2011-11-30 23:21:50 +0900
@@ -299,7 +305,7 @@
         if settings.get('open-reading') == 'yes':
             pages = cls.all().order('-updated').fetch(20)
         else:
-            pages = cls.gql('WHERE pread = :1 ORDER BY -updated', 
True).fetch(20)
+            pages = cls.gql('WHERE pread = :1 ORDER BY updated DESC', 
True).fetch(20)
         return pages

     @classmethod

Original comment by h.rayflood on 30 Nov 2011 at 2:52

GoogleCodeExporter commented 8 years ago
This issue was closed by revision dfabb4481ccd.

Original comment by justin.forest on 30 Nov 2011 at 3:45

GoogleCodeExporter commented 8 years ago
Thank you.

Original comment by justin.forest on 30 Nov 2011 at 3:45