Humbedooh commented on issue #15: Decimal value in trends widget
URL: https://github.com/apache/kibble/issues/15#issuecomment-386969167
 
 
   oh, I see the issue. You have to specify in python (2.7 at least) that you 
want a floating point result, or it will turn it into an integer. Something 
like:
   
   "ratio":{
               'before': 100 *  no_issues_closed_before / 
no_issues_created_before / 100.0,
               'after': 100 * no_issues_closed / no_issues_created / 100.0,
               'title': "Ratio of Issues Closed / Issues Opened"
           }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to