Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing erroneous dizque_instance causing add_fillers to fail #109

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

mkfenton
Copy link
Contributor

Within Fillers Model, add_fillers had a call to expand_custom_show_items which included programs and dizque_instance, but expand_custom_show_items only accepts programs - dizque_instance not accepted here (see https://dizquetv.readthedocs.io/en/latest/documentation.html#dizqueTV.dizquetv.API.expand_custom_show_items )

--
Current usage of add_fillers results in error

Traceback (most recent call last):
File "/opt/bfscript/playlist_to_filler.py", line 93, in
fillerlist.add_fillers(fillers=to_add)
File "/usr/local/lib/python3.8/dist-packages/dizqueTV/decorators.py", line 19, in inner
return func(obj, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/dizqueTV/models/fillers.py", line 180, in add_fillers
fillers = self._dizque_instance.expand_custom_show_items(
TypeError: expand_custom_show_items() got an unexpected keyword argument 'dizque_instance'

Within Fillers Model, add_fillers had a call to expand_custom_show_items which included programs and dizque_instance, but expand_custom_show_items only accepts programs - dizque_instance not accepted here
(see https://dizquetv.readthedocs.io/en/latest/documentation.html#dizqueTV.dizquetv.API.expand_custom_show_items )
@nwithan8 nwithan8 self-requested a review June 14, 2024 16:55
Copy link
Owner

@nwithan8 nwithan8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@nwithan8 nwithan8 merged commit f7ebc40 into nwithan8:master Jun 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants