forked from 0x2620/pandora
order keywords. fixes #219
This commit is contained in:
parent
e3e117588f
commit
4073aa58dc
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ def _order_by_group(query):
|
||||||
elif query['group'] != "keyword":
|
elif query['group'] != "keyword":
|
||||||
order_by = (order_by, 'sortvalue')
|
order_by = (order_by, 'sortvalue')
|
||||||
else:
|
else:
|
||||||
order_by = (order_by,)
|
order_by = (order_by, 'value')
|
||||||
else:
|
else:
|
||||||
order_by = query['sort'][0]['operator'] == '-' and '-sortvalue' or 'sortvalue'
|
order_by = query['sort'][0]['operator'] == '-' and '-sortvalue' or 'sortvalue'
|
||||||
order_by = (order_by, 'items')
|
order_by = (order_by, 'items')
|
||||||
|
|
|
@ -33,5 +33,5 @@ if [ $current -ne $new ]; then
|
||||||
cd pandora
|
cd pandora
|
||||||
./manage.py update_static
|
./manage.py update_static
|
||||||
./manage.py compile_pyc
|
./manage.py compile_pyc
|
||||||
./manage.py sqldiff -a | grep -v BEGIN | grep -v COMMIT
|
./manage.py sqldiff -a | grep -v BEGIN | grep -v COMMIT | grep -v "\-\- No differences"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue