add bi
This commit is contained in:
parent
23d78f35c3
commit
89ffee57d7
|
@ -44,7 +44,11 @@ class S:
|
||||||
while last_time <= get_today_zero_time():
|
while last_time <= get_today_zero_time():
|
||||||
next_time = last_time + 300
|
next_time = last_time + 300
|
||||||
flow = self.get_flow(zero_time, next_time)
|
flow = self.get_flow(zero_time, next_time)
|
||||||
self.insert_flow(get_time_str_by_ts(next_time), flow)
|
|
||||||
|
dt = datetime.datetime.fromtimestamp(next_time)
|
||||||
|
formatted_dt = dt.strftime('%Y-%m-%d %H:%M:%S')
|
||||||
|
|
||||||
|
self.insert_flow(formatted_dt, flow)
|
||||||
print(get_time_str_by_ts(next_time), flow)
|
print(get_time_str_by_ts(next_time), flow)
|
||||||
|
|
||||||
last_time += 300
|
last_time += 300
|
||||||
|
|
Loading…
Reference in New Issue