From e1ef715514298fea06e86d07358e56c49016cff2 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Mon, 12 Jan 2009 14:25:56 +0000 Subject: Alphabetize clients list in reports so that it looks more sane git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5016 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Reports/reports/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/Server/Reports/reports/views.py b/src/lib/Server/Reports/reports/views.py index c6e4e4501..e41836470 100644 --- a/src/lib/Server/Reports/reports/views.py +++ b/src/lib/Server/Reports/reports/views.py @@ -91,8 +91,8 @@ def modified_item_index(request, timestamp = 'now'): def client_index(request, timestamp = 'now'): timestamp = timestamp.replace("@"," ") client_list = Client.objects.active(timestamp).order_by('name') - client_list_b = client_list[:len(client_list)/2] client_list_a = client_list[len(client_list)/2:] + client_list_b = client_list[:len(client_list)/2] if timestamp == 'now': timestamp = datetime.now().isoformat('@') return render_to_response('clients/index.html', -- cgit v1.2.3-1-g7c22