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

Upgrade dataset hoster #2861

Merged
merged 8 commits into from
May 3, 2024
Merged

Upgrade dataset hoster #2861

merged 8 commits into from
May 3, 2024

Conversation

amCap1712
Copy link
Member

The new dataset hoster adds typing support but also changes the data format. Hence, queries need to be refactored.

@pep8speaks
Copy link

pep8speaks commented May 1, 2024

Hello @amCap1712! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 37:131: E501 line too long (140 > 130 characters)

Line 142:73: W291 trailing whitespace

Line 105:26: E128 continuation line under-indented for visual indent

Comment last updated at 2024-05-03 17:05:31 UTC

@amCap1712 amCap1712 requested a review from mayhem May 2, 2024 18:28
Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

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

Yaaay!

raise BadRequest(f"Invalid recording mbid: {param['[recording_mbid]']}")
mbids.append(param["[recording_mbid]"])
def fetch(self, params, source, offset=-1, count=-1):
mbids = [str(p.recording_mbid) for p in params]
Copy link
Member

Choose a reason for hiding this comment

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

so much nicer now!

@amCap1712 amCap1712 merged commit f303a82 into master May 3, 2024
2 checks passed
@amCap1712 amCap1712 deleted the dsh-upgrade branch May 3, 2024 17:11
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.

4 participants