添加daily report生成
This commit is contained in:
parent
b08bc5b42e
commit
f7c2fc4352
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user