add workflow 天润Smart-ccc会话数据,dev

This commit is contained in:
root 2024-07-03 13:39:28 +08:00
parent 62c21c1f1f
commit cadf498fad
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ current_time_utc =( datetime.datetime.now() - datetime.timedelta(hours=8)).strft
formatted2_current_date = current_date.strftime("%Y-%m-%d %H:%M:%S") # 获取当前日期 - 标准化
def formatted2_previous_date(d):
if h==0:
if d==0:
return datetime.date.today().strftime("%Y%m%d")
# 减去一个小时,得到前一个小时的开始时间
start_of_previous_date = datetime.date.today() - datetime.timedelta(days=d)