incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [37/48] git commit: [5453] Fixed bug in code to hide stats
Date Thu, 21 Mar 2013 14:22:13 GMT
[5453] Fixed bug in code to hide stats


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

Branch: refs/heads/si/5453
Commit: c21e9f61e7cae66ee993ab53b17a766f443c8f33
Parents: f689ce0
Author: Stefano Invernizzi <stefanoinve@apache.org>
Authored: Sat Feb 23 12:06:17 2013 +0100
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Mar 21 14:20:55 2013 +0000

----------------------------------------------------------------------
 .../forgeuserstats/controllers/userstats.py        |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c21e9f61/ForgeUserStats/forgeuserstats/controllers/userstats.py
----------------------------------------------------------------------
diff --git a/ForgeUserStats/forgeuserstats/controllers/userstats.py b/ForgeUserStats/forgeuserstats/controllers/userstats.py
index 3944557..c77dded 100644
--- a/ForgeUserStats/forgeuserstats/controllers/userstats.py
+++ b/ForgeUserStats/forgeuserstats/controllers/userstats.py
@@ -173,6 +173,7 @@ class ForgeUserStatsMetricController(BaseController):
     def artifacts(self, **kw):
         if not self.user:
             return dict(user=None)
+        stats = self.user.stats
         if (not stats.visible) and (c.user != self.user):
             return dict(user=self.user)
 
@@ -185,6 +186,7 @@ class ForgeUserStatsMetricController(BaseController):
     def tickets(self, **kw):
         if not self.user: 
             return dict(user=None)
+        stats = self.user.stats
         if (not stats.visible) and (c.user != self.user):
             return dict(user=self.user)
 


Mime
View raw message