From f564cef5fac53ccd098c8d099558771b7168e89a Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 22 Oct 2019 15:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=BC=E5=87=BA=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daily_report/dreport.py | 1 + daily_report/templates/report.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/daily_report/dreport.py b/daily_report/dreport.py index 585a4f5..6ddeecd 100644 --- a/daily_report/dreport.py +++ b/daily_report/dreport.py @@ -273,6 +273,7 @@ class Report: def run(self): data = dict() data['day'] = self.day + data['channelid'] = self.channelid data['gameid'] = self.gameid data['all'] = self.get_all_data() data['input'] = defaultdict(list) diff --git a/daily_report/templates/report.html b/daily_report/templates/report.html index 5872d78..0266b90 100644 --- a/daily_report/templates/report.html +++ b/daily_report/templates/report.html @@ -10,9 +10,9 @@ 游戏内容 all:{{data}} - 游戏ID:{{data.get(gameid)}} - 渠道ID:{{data.get('channelid')}} - 日期:{{data.get(day)}} + 游戏ID:{{data['gameid']}} + 渠道ID:{{data['channelid']}} + 日期:{{data['day']}}