fix combining viewings
This commit is contained in:
parent
b32d5aa6c6
commit
cd4b392573
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user