Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
petitminion
funkwhale
Commits
38224bfc
Commit
38224bfc
authored
Nov 02, 2021
by
petitminion
Browse files
Update api/funkwhale_api/radios/utils.py
parent
a224963e
Pipeline
#16975
passed with stages
in 13 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/radios/utils.py
View file @
38224bfc
...
...
@@ -32,7 +32,7 @@ def get_similar_tracks_mbids_from_mbid(mbid, annoy_similarity):
"Metric %s is not valid. Must be one of : "
+
print
(
VALID_METRICS
)
)
headers
=
{
"Content-Type
'
:
'
application/json"
}
headers
=
{
"Content-Type
"
:
"
application/json"
}
endpoint
=
"acousticbrainz.org/api/v1/similarity"
similar_tracks_mbids
=
[]
similar_tracks
=
requests
.
get
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment