diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-10-29 14:03:14 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-10-29 14:03:14 +0000 |
commit | 6a89b705e812da86de34b1f5a486a71e3f4d6937 (patch) | |
tree | 51a6e0c568663e8cee0f7f5eb42c5b4b5f590271 /src/lib/Server | |
parent | 34f5d388651728f7d87230d75d047232521496ee (diff) | |
download | bcfg2-6a89b705e812da86de34b1f5a486a71e3f4d6937.tar.gz bcfg2-6a89b705e812da86de34b1f5a486a71e3f4d6937.tar.bz2 bcfg2-6a89b705e812da86de34b1f5a486a71e3f4d6937.zip |
ensure that client_list_a is always filled before client_list_b
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3879 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Reports/reports/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Reports/reports/views.py b/src/lib/Server/Reports/reports/views.py index 3f58fb0d8..1841847d3 100644 --- a/src/lib/Server/Reports/reports/views.py +++ b/src/lib/Server/Reports/reports/views.py @@ -157,8 +157,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_a = client_list[:len(client_list)/2] - client_list_b = client_list[len(client_list)/2:] + client_list_b = client_list[:len(client_list)/2] + client_list_a = client_list[len(client_list)/2:] if timestamp == 'now': timestamp = datetime.now().isoformat('@') return render_to_response('clients/index.html', {'client_list_a': client_list_a, |