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: