diff --git a/daily_report/dreport.py b/daily_report/dreport.py index d37dcd9..5503b49 100644 --- a/daily_report/dreport.py +++ b/daily_report/dreport.py @@ -245,13 +245,14 @@ class Report: activa = args['tga'].get_data(activa_sql)[0][0] or 0 new = args['tga'].get_data(new_sql)[0][0] or 0 share = args['tga'].get_data(share_sql)[0][0] or 0 + jumpout = args['tga'].get_data(jumpout_sql)[0][0] or 0 if activa: timeonlie = round(int(args['tga'].get_data(timeonlie_sql)[0][0] or 0) / activa, 2) + jump_per = round((100 * jumpout) / activa, 2) else: timeonlie = 0 + jump_per = 0 - jumpout = args['tga'].get_data(jumpout_sql)[0][0] or 0 - jump_per = round((100 * jumpout) / activa, 2) if args['gameid'] not in self.not_minigames: ad_101 = args['tga'].get_data(ad_101_sql)[0][0] or 0 ad_1 = args['tga'].get_data(ad_1_sql)[0][0] or 0 diff --git a/daily_report/templates/report.html b/daily_report/templates/report.html index b2b9ad8..df6b75b 100644 --- a/daily_report/templates/report.html +++ b/daily_report/templates/report.html @@ -126,6 +126,8 @@ + {% if line.input %} +