web/facet.py
changeset 9373 d5d9acadb975
parent 9139 5ca6e0ab0227
child 9492 c7fc56eecd1a
--- a/web/facet.py	Thu Dec 12 18:25:45 2013 +0100
+++ b/web/facet.py	Tue Dec 03 15:46:19 2013 +0100
@@ -127,11 +127,9 @@
     return filtered_variable, baserql
 
 def get_filtered_variable(select, mainvar=None):
-    """drop any limit/offset from select (in-place modification) and return the
-    variable whose name is `mainvar` or the first variable selected in column 0
+    """ Return the variable whose name is `mainvar`
+    or the first variable selected in column 0
     """
-    select.set_limit(None)
-    select.set_offset(None)
     if mainvar is None:
         vref = select.selection[0].iget_nodes(nodes.VariableRef).next()
         return vref.variable