aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/sql/base.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-17 12:56:29 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-21 11:30:29 +0100
commit10f1f2f56b9ff1153b58cb938427d74c8211194b (patch)
tree2da4e05cda0edb30ef9bdce5d96b4578e0914dc8 /mediagoblin/db/sql/base.py
parentaf008743ca89a3f3634efa31718a65ea8adbc2fd (diff)
downloadmediagoblin-10f1f2f56b9ff1153b58cb938427d74c8211194b.tar.lz
mediagoblin-10f1f2f56b9ff1153b58cb938427d74c8211194b.tar.xz
mediagoblin-10f1f2f56b9ff1153b58cb938427d74c8211194b.zip
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 <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/db/sql/base.py')
-rw-r--r--mediagoblin/db/sql/base.py3
1 files changed, 0 insertions, 3 deletions
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))