fix bug
This commit is contained in:
parent
4da7513dc9
commit
acb428eecc
@ -110,7 +110,7 @@ def run(gameid, channelid, ad_channel):
|
||||
now = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
last_time = get_last_time(gameid, channelid, ad_channel)
|
||||
if not last_time:
|
||||
raise Except("last_time get failed")
|
||||
raise Exception("last_time get failed")
|
||||
while comp_datetime(now, last_time):
|
||||
gather_data(last_time, gameid, channelid, ad_channel)
|
||||
last_time = (datetime.datetime.strptime(last_time, "%Y-%m-%d %H:%M:%S") + datetime.timedelta(minutes=TimeDelay)).strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
Loading…
x
Reference in New Issue
Block a user