amunz opened a new issue #15: Decimal value in trends widget URL: https://github.com/apache/kibble/issues/15 Hello, I would like to add an issues closed over issues opened ratio to the trends widget in the Issue Trackers page. I have gotten it to show up, but the value is displayed as an integer when I would like for it to be a decimal.  I edited the /api/pages/issue/trends.py file to add the ratio. ```python trends = { "created": { 'before': no_issues_created_before, 'after': no_issues_created, 'title': "Issues opened this period" }, "authors": { 'before': no_creators_before, 'after': no_creators, 'title': "People opening issues this period" }, "closed": { 'before': no_issues_closed_before, 'after': no_issues_closed, 'title': "Issues closed this period" }, "closers": { 'before': no_closers_before, 'after': no_closers, 'title': "People closing issues this period" }, "ratio":{ 'before': no_issues_closed_before / no_issues_created_before, 'after': no_issues_closed/no_issues_created, 'title': "Ratio of Issues Closed / Issues Opened" } } ``` I have tried casting the variables to a float, but the UI still displays an integer. Any help would be appreciated. Thanks.
---------------------------------------------------------------- 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
