You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/23 21:15:11 UTC
[kibble] branch master updated: fix to 100 as optimal,
like the overall mood chart
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/master by this push:
new 5c8bfb8 fix to 100 as optimal, like the overall mood chart
5c8bfb8 is described below
commit 5c8bfb8f1bd2f72a6731c15cff2ab251649ab583
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Oct 23 23:15:03 2017 +0200
fix to 100 as optimal, like the overall mood chart
---
api/pages/mail/mood-timeseries.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/pages/mail/mood-timeseries.py b/api/pages/mail/mood-timeseries.py
index 43a0d77..a43b85c 100644
--- a/api/pages/mail/mood-timeseries.py
+++ b/api/pages/mail/mood-timeseries.py
@@ -186,7 +186,7 @@ def run(API, environ, indata, session):
moods = {}
emls = tz['doc_count']
for mood in M:
- moods[mood] = tz.get(mood, {'value':0})['value'] / max(1, emls)
+ moods[mood] = int (100 * tz.get(mood, {'value':0})['value'] / max(1, emls))
moods['date'] = int(tz['key']/1000)
timeseries.append(moods)
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].