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']}}