Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/node/stats_node.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-11-10 21:49:23 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-11-10 21:49:23 (GMT)
commit0e1fdae2ede40b64027f8c68bd6a562e3b217f67 (patch)
treec8c9c02b55b21da852cf00c7d8efcd5305d0784a /sugar_network/node/stats_node.py
parent58bff9bca330882a01a596db78f948168cb66311 (diff)
Update node stats while mergin subnode data on master
Diffstat (limited to 'sugar_network/node/stats_node.py')
-rw-r--r--sugar_network/node/stats_node.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar_network/node/stats_node.py b/sugar_network/node/stats_node.py
index 2ca8ee6..ec54fc3 100644
--- a/sugar_network/node/stats_node.py
+++ b/sugar_network/node/stats_node.py
@@ -282,6 +282,9 @@ class _FeedbackStats(_ResourceStats):
self.solutions += 1
else:
self.solutions -= 1
+ elif request.method == 'DELETE':
+ if self._directory.get(request.guid)['solution']:
+ self.solutions -= 1
def commit(self):
result = _ResourceStats.commit(self)