|
|
|
@ -148,10 +148,10 @@ def get_new_suggestion(cinema, show_date): |
|
|
|
return None |
|
|
|
return None |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_new_movie(start_date='today'): |
|
|
|
def get_new_movie(start_date): |
|
|
|
cinema_list = TestCinema.objects.all() |
|
|
|
cinema_list = TestCinema.objects.all() |
|
|
|
start_date_obj = datetime.datetime.today() |
|
|
|
start_date_obj = datetime.datetime.today() |
|
|
|
if start_date != 'today': |
|
|
|
if start_date is not None: |
|
|
|
try: |
|
|
|
try: |
|
|
|
start_date_obj = datetime.datetime.strptime(start_date, '%Y-%m-%d') |
|
|
|
start_date_obj = datetime.datetime.strptime(start_date, '%Y-%m-%d') |
|
|
|
except ValueError: |
|
|
|
except ValueError: |
|
|
|
|