From 85443e38498f932757c79c4a0326f3635bfa33a5 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 19 Aug 2008 14:45:13 -0700 Subject: [PATCH] Fixed another limit/offset ordering problem to make SQLite happy. --- model/Notebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/Notebook.py b/model/Notebook.py index fa15e08..feafb08 100644 --- a/model/Notebook.py +++ b/model/Notebook.py @@ -145,8 +145,8 @@ class Notebook( Persistent ): notebook_id = %s and note_current.id = note_creation.id order by creation desc - offset %d limit %d; - """ % ( quote( self.object_id ), quote( self.object_id ), start, count ) + limit %d offset %d; + """ % ( quote( self.object_id ), quote( self.object_id ), count, start ) def sql_load_note_by_id( self, note_id ): """