|
|
|
|
@ -7,6 +7,7 @@ from ai.utils.movie_data import * |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_cinema_show_result_func(_zz_code, _show_date): |
|
|
|
|
print("get_cinema_show_result_func") |
|
|
|
|
cinema = TestCinema.objects.filter(zz_code=_zz_code).first() |
|
|
|
|
start = datetime.datetime.strftime(datetime.datetime.strptime(_show_date, '%Y-%m-%d') + datetime.timedelta(hours=6), |
|
|
|
|
'%Y-%m-%d %H:%M:%S') |
|
|
|
|
@ -14,7 +15,7 @@ def get_cinema_show_result_func(_zz_code, _show_date): |
|
|
|
|
datetime.datetime.strptime(_show_date, '%Y-%m-%d') + datetime.timedelta(hours=29, minutes=59, seconds=59), |
|
|
|
|
'%Y-%m-%d %H:%M:%S') |
|
|
|
|
show = '' |
|
|
|
|
income = '' |
|
|
|
|
income = '0' |
|
|
|
|
if cinema: |
|
|
|
|
print(cinema) |
|
|
|
|
data = GetData(cinema) |
|
|
|
|
@ -23,6 +24,9 @@ def get_cinema_show_result_func(_zz_code, _show_date): |
|
|
|
|
print(show, income) |
|
|
|
|
show_db = AiShow.objects.filter(Q(is_ai_show=False) & Q(zz_code=_zz_code) & Q(show_date=_show_date)).order_by( |
|
|
|
|
'-id').first() |
|
|
|
|
if show is False: |
|
|
|
|
show = ('影厅别名,影厅id,影片别名,本地影片id,语言,放映日期,开始时间,结束时间,片长,场间') |
|
|
|
|
income = '0' |
|
|
|
|
if show_db: |
|
|
|
|
print('show_db', show_db) |
|
|
|
|
show_db.show = show |
|
|
|
|
|