--- 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