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:12:58 UTC

[kibble] branch master updated: this should have been max!

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 e9cf892  this should have been max!
e9cf892 is described below

commit e9cf8923a0e44f72441ee7d903c2a7b940a9656b
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Oct 23 23:12:50 2017 +0200

    this should have been max!
---
 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 8c58665..43a0d77 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'] / min(1, emls)
+            moods[mood] = 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>'].