Migrate section_id to session_history table

This commit is contained in:
JonnyWong16 2021-03-27 21:35:05 -07:00
commit 6086e84630
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
9 changed files with 81 additions and 43 deletions

View file

@ -1953,7 +1953,7 @@ class WebInterface(object):
custom_where.append(['session_history.reference_id', reference_id])
if 'section_id' in kwargs:
section_id = kwargs.get('section_id', '')
custom_where.append(['session_history_metadata.section_id', section_id])
custom_where.append(['session_history.section_id', section_id])
if 'media_type' in kwargs:
media_type = kwargs.get('media_type', '')
if media_type not in ('all', 'live'):