Fix AC/DC, Panic At The Disco bugs
This commit is contained in:
@@ -15,7 +15,7 @@ class ArtistController < ApplicationController
|
||||
if results.empty?
|
||||
return render json: { status: 'not_found' }
|
||||
end
|
||||
best_match = results[0][:name]
|
||||
best_match = results[0][:sort_name]
|
||||
if best_match != artist_name and similar_names(artist_name, best_match)
|
||||
return render json: { status: 'corrected', correct_name: best_match }
|
||||
elsif best_match == artist_name
|
||||
|
||||
Reference in New Issue
Block a user