[damned-lies] Fix syntax error in stats views
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fix syntax error in stats views
- Date: Sat, 2 Oct 2010 08:38:38 +0000 (UTC)
commit 0a571159ebf3456b104d384de4798c46b82206c5
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Oct 2 10:38:13 2010 +0200
Fix syntax error in stats views
stats/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/views.py b/stats/views.py
index f2a38c9..08ecfe7 100644
--- a/stats/views.py
+++ b/stats/views.py
@@ -229,7 +229,7 @@ def releases(request, format='html'):
old_releases = Release.objects.filter(weight__lt=0).order_by('status', '-weight', '-name')
if format in ('json', 'xml'):
from itertools import chain
- data = serializers.serialize(format, itertools.chain(active_releases, old_releases))
+ data = serializers.serialize(format, chain(active_releases, old_releases))
return HttpResponse(data, mimetype=MIME_TYPES[format])
context = {
'pageSection' : "releases",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]