Skip to content

Commit

Permalink
fix: 修复旧版本周期任务无创建时间和编辑时间字段发送通知报错问题 #7364
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej authored and normal-wls committed May 9, 2024
1 parent ef7b09c commit 8b893c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcloud/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def scan_periodic_task(is_send_notify: bool = True):
months=-int(settings.PERIODIC_TASK_REMINDER_TIME)
)
edit_time = p_task["edit_time"] if p_task["edit_time"] else p_task["create_time"]
if last_month_time.timestamp() < edit_time.timestamp():
if edit_time and last_month_time.timestamp() < edit_time.timestamp():
continue
creator = p_task["task__creator"]
project_name = p_task["project__name"]
Expand Down

0 comments on commit 8b893c8

Please sign in to comment.