Fix AC/DC, Panic At The Disco bugs

This commit is contained in:
magnolia-fan
2011-11-24 02:12:15 +04:00
parent 83dd697fb9
commit 3205af0be6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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