From 4073aa58dc3222cbb944c4556c95002eaba72fac Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 31 Jan 2012 05:54:18 +0530 Subject: [PATCH] order keywords. fixes #219 --- pandora/item/views.py | 2 +- update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 8ea16b4c8..7527e742f 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -67,7 +67,7 @@ def _order_by_group(query): elif query['group'] != "keyword": order_by = (order_by, 'sortvalue') else: - order_by = (order_by,) + order_by = (order_by, 'value') else: order_by = query['sort'][0]['operator'] == '-' and '-sortvalue' or 'sortvalue' order_by = (order_by, 'items') diff --git a/update.sh b/update.sh index 1f53899d4..d0febdf8f 100755 --- a/update.sh +++ b/update.sh @@ -33,5 +33,5 @@ if [ $current -ne $new ]; then cd pandora ./manage.py update_static ./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