incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [39/50] [abbrv] git commit: [#5453] Fix initialization of the stats object
Date Mon, 08 Apr 2013 15:19:40 GMT
[#5453] Fix initialization of the stats object


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/8eeb3ae0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/8eeb3ae0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/8eeb3ae0

Branch: refs/heads/db/6007
Commit: 8eeb3ae0db7dd9bfde2e8fb5cfdf0f5da6a384d8
Parents: faf7812
Author: Stefano Invernizzi <stefanoinve@apache.org>
Authored: Wed Mar 6 22:39:25 2013 +0100
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Apr 4 18:37:37 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/contrib_stats.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8eeb3ae0/Allura/allura/model/contrib_stats.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/contrib_stats.py b/Allura/allura/model/contrib_stats.py
index adc36db..51121ad 100644
--- a/Allura/allura/model/contrib_stats.py
+++ b/Allura/allura/model/contrib_stats.py
@@ -498,12 +498,12 @@ class Stats(MappedClass):
                     newstats = dict(
                         category=t,
                         commits=[],
-                        messages=dict(
+                        messages=[dict(
                             assigned=0,
                             solved=0,
                             revoked=0,
-                            totsolvingtime=0),
-                        tickets=[])   
+                            totsolvingtime=0)],
+                        tickets={})
                     stats.general.append(newstats)
                     i = getElementIndex(stats.general, category=t)
                 for lang in ll:


Mime
View raw message