From ff9fc57ae0862b9d56891872d072b49bd45e67f3 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 21 Oct 2019 14:25:09 +0800 Subject: [PATCH] =?UTF-8?q?add=20daily=20report=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daily_report/dreport.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daily_report/dreport.py b/daily_report/dreport.py index 90f75f7..5b147c7 100644 --- a/daily_report/dreport.py +++ b/daily_report/dreport.py @@ -4,8 +4,9 @@ from flask import render_template class Report: - def __init__(self, gameid): + def __init__(self, gameid, channelid): self.gameid = gameid + self.channelid = channelid def run(self): @@ -13,9 +14,10 @@ class Report: def main(): + channelid = 6001 gameids = (1004, 2001) for gameid in gameids: - cc = Report(gameid) + cc = Report(gameid, channelid) cc.run()