From cd4b39257328b25539dd4baac0bb32a0d547cc8e Mon Sep 17 00:00:00 2001 From: Sarah Date: Sat, 12 Mar 2022 12:14:32 +0000 Subject: [PATCH] fix combining viewings --- vcinema_utils/VCinemaUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcinema_utils/VCinemaUtils.py b/vcinema_utils/VCinemaUtils.py index 6a1240a..c002348 100644 --- a/vcinema_utils/VCinemaUtils.py +++ b/vcinema_utils/VCinemaUtils.py @@ -45,7 +45,7 @@ def get_vcinema_viewings(token_id, token_secret, combine_repeat_viewings=True): first_watch = viewings[viewing_indexes[0]] for index in viewing_indexes[1::]: - first_watch['viewings'].append(viewings[index]['viewings']) + first_watch['viewings'].extend(viewings[index]['viewings']) for index in reversed(viewing_indexes[1::]): viewings.pop(index)