添加daily report生成

This commit is contained in:
pengtao 2019-10-22 10:47:34 +08:00
parent b08bc5b42e
commit f7c2fc4352

View File

@ -9,7 +9,7 @@ from threading import Thread
from collections import defaultdict
from ops.plog import define_logger
import logging
import datetime
define_logger("/data/logs/ops/daily_report.log")
log = logging.getLogger(__name__)
@ -268,8 +268,9 @@ class Report:
def main():
channelid = 6001
gameids = (1004, 2001)
day = (datetime.date.today() - datetime.timedelta(days=1)).strftime('%Y-%m-%d')
for gameid in gameids:
cc = Report(gameid, channelid)
cc = Report(gameid, channelid, day)
cc.run()