From 8b893c85d7588ea33cf7f9357b570d97e66bdf0e Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 9 May 2024 15:39:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=91=A8=E6=9C=9F=E4=BB=BB=E5=8A=A1=E6=97=A0=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=97=B6=E9=97=B4=E5=92=8C=E7=BC=96=E8=BE=91=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=AD=97=E6=AE=B5=E5=8F=91=E9=80=81=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20#7364?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/core/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcloud/core/tasks.py b/gcloud/core/tasks.py index 6097a66d28..8d95f63939 100644 --- a/gcloud/core/tasks.py +++ b/gcloud/core/tasks.py @@ -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"]