From 10f1f2f56b9ff1153b58cb938427d74c8211194b Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 17 Dec 2012 12:56:29 +0100 Subject: Remove Mongoism query.skip() sqlalchemy supports slice() or [n:m] just fine. Right now, it seems we cannot distinguish beween "empty" results and out-of bound slices. It would be nice if we could distinguish these somehow. Signed-off-by: Sebastian Spaeth --- mediagoblin/db/sql/base.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'mediagoblin/db/sql/base.py') diff --git a/mediagoblin/db/sql/base.py b/mediagoblin/db/sql/base.py index 8aa9cc3a..fbbac6f9 100644 --- a/mediagoblin/db/sql/base.py +++ b/mediagoblin/db/sql/base.py @@ -35,9 +35,6 @@ class GMGQuery(Query): key_col = desc(key_col) return self.order_by(key_col) - def skip(self, amount): - return self.offset(amount) - Session = scoped_session(sessionmaker(query_cls=GMGQuery)) -- cgit v1.2.3