From d53c5e60ec089e263fb6516ed2965b85ca36097e Mon Sep 17 00:00:00 2001 From: rogersun Date: Sun, 12 Jul 2026 08:27:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=BC=BA=E5=B0=91=E5=8F=82=E6=95=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai/tasks.py | 2 +- ai/utils/show_func.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ai/tasks.py b/ai/tasks.py index bc8485d..3a8fa9b 100644 --- a/ai/tasks.py +++ b/ai/tasks.py @@ -13,6 +13,6 @@ def ai_show_general(): @shared_task(time_limit=18*60, soft_time_limit=18*60) def get_new_movie_task(): - get_new_movie(None) + get_new_movie() print("task success") return True \ No newline at end of file diff --git a/ai/utils/show_func.py b/ai/utils/show_func.py index 302ad30..9f66574 100644 --- a/ai/utils/show_func.py +++ b/ai/utils/show_func.py @@ -160,7 +160,7 @@ def get_new_suggestion(cinema, show_date): return None -def get_new_movie(start_date): +def get_new_movie(start_date=None): cinema_list = TestCinema.objects.all() start_date_obj = datetime.datetime.today() if start_date is not None: