1
0
Fork 0
mirror of https://github.com/MatomoCamp/pretalx-matomocamp.git synced 2024-09-18 14:43:49 +02:00

make 2022 event past

This commit is contained in:
Lukas Winkler 2022-11-23 14:25:16 +01:00
parent 01fb246aa0
commit d75bc78b56
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -12,7 +12,7 @@ class MatomoVideoProvider(BaseRecordingProvider):
"""
def get_recording(self, submission: Submission):
is_past_submission = submission.event.id == 1 # 1: 2021, 4: 2022
is_past_submission = submission.event.id in {1, 4} # 1: 2021, 4: 2022
is_workshop = submission.submission_type.id == 2
button_title = "View Workshop" if is_workshop else "View Livestream"
livestream_url = f"https://live.matomocamp.org/" + submission.code