add workflow 天润Smart-ccc会话数据,dev
This commit is contained in:
parent
1552eb50e1
commit
bddb7d3da6
|
@ -260,9 +260,9 @@ if __name__ == "__main__":
|
||||||
previous_time = previous_hour_timestamp(hour_delta)
|
previous_time = previous_hour_timestamp(hour_delta)
|
||||||
list = fetch_records_all(0)
|
list = fetch_records_all(0)
|
||||||
|
|
||||||
if datetime.datetime.now().hour < 3:
|
# if datetime.datetime.now().hour < 3:
|
||||||
pre_list = fetch_records_all(1)
|
# pre_list = fetch_records_all(1)
|
||||||
list = list + pre_list
|
# list = list + pre_list
|
||||||
load_data_to_db(list)
|
load_data_to_db(list)
|
||||||
records = get_data_from_db()
|
records = get_data_from_db()
|
||||||
if len(records) > 0:
|
if len(records) > 0:
|
||||||
|
|
Loading…
Reference in New Issue