minor ordering changes

This commit is contained in:
Andy Eschbacher 2016-08-29 15:50:19 -04:00
parent 5423684e46
commit a451fb5b6a

View File

@ -58,9 +58,9 @@ def query_attr_select(params):
else: else:
## if moran's analysis ## if moran's analysis
attrs = [k for k in params attrs = [k for k in params
if k not in ('id_col', 'geom_col', 'subquery', 'num_ngbrs', 'subquery')] if k not in ('id_col', 'geom_col', 'subquery', 'num_ngbrs')]
for idx, val in enumerate(sorted(attrs)): for idx, val in enumerate(attrs):
attr_string += template % {"col": params[val], "alias_num": idx + 1} attr_string += template % {"col": params[val], "alias_num": idx + 1}
return attr_string return attr_string