add workflow 天润dynamic邮件同步,dev

This commit is contained in:
root 2024-08-02 18:50:08 +08:00
parent add6ec2c63
commit fb85a1f0a9
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ def main(mail_task_id, dops_db_config, mpp_db_config, send_from):
# 组合时间戳和随机数 # 组合时间戳和随机数
mail_id = f"{timestampid}{random_part}" mail_id = f"{timestampid}{random_part}"
title = title.replace('{date}', current_time) title = title.replace('{date}', current_time)
output_file = output_file.replace('{time}', current_time)
file_dict_path = os.path.join(output_path, mail_id) file_dict_path = os.path.join(output_path, mail_id)