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

Fix for #2790 - acousticbrainz: Really small float values are stored as strings #3238

Merged
merged 11 commits into from
Apr 30, 2019
Merged

Fix for #2790 - acousticbrainz: Really small float values are stored as strings #3238

merged 11 commits into from
Apr 30, 2019

Conversation

rain0r
Copy link
Contributor

@rain0r rain0r commented Apr 24, 2019

Successor-PR for 3233. Fixes #2790

Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

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

Awesome; thank you!! Here are a couple of little coding suggestions.

beets/dbcore/types.py Outdated Show resolved Hide resolved
@@ -151,7 +176,7 @@ def _get_data(self, mbid):
return {}

if res.status_code == 404:
self._log.info(u'recording ID {} not found', mbid)
self._log.info(u'recording ID \'{}\' not found', mbid)
Copy link
Member

Choose a reason for hiding this comment

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

Any particular reason to add these single quotes in these log statements? For the sake of the cleanliness of this PR, it would be awesome to leave that to a later change if you don't mind—and keep this change focused on just the fix you have here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this while debugging ... the output was easier to read for me this way.

Example:

acousticbrainz: attribute 'gender' of 'M83 -  - Ludivine' set to 'male'

But, anyway, you are correct. I can revert it if you like.

Copy link
Member

@jackwilsdon jackwilsdon Apr 27, 2019

Choose a reason for hiding this comment

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

It's probably best to revert this (and the other log statements too) if not just because it adds unrelated changes/noise to this PR.

Copy link
Contributor Author

@rain0r rain0r Apr 27, 2019

Choose a reason for hiding this comment

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

Reverted them.
@sampsyo

@sampsyo sampsyo merged commit 62c1d37 into beetbox:master Apr 30, 2019
sampsyo added a commit that referenced this pull request Apr 30, 2019
Fix for #2790 - acousticbrainz: Really small float values are stored as strings
sampsyo added a commit that referenced this pull request Apr 30, 2019
sampsyo added a commit that referenced this pull request Apr 30, 2019
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.

acousticbrainz: Really small float values are stored as strings
3 participants