fix it once again
This commit is contained in:
parent
d47f57850e
commit
42ec01d2f5
@ -66,7 +66,7 @@ module YiffRest
|
|||||||
@sp[:image_id] ||= @sp[:md5]
|
@sp[:image_id] ||= @sp[:md5]
|
||||||
@sc = (@sp[:score_cutoff].presence || 60).to_i
|
@sc = (@sp[:score_cutoff].presence || 60).to_i
|
||||||
if @sp[:file].present?
|
if @sp[:file].present?
|
||||||
@results = Iqdb.query_file(@sp[:file], @sc)
|
@results = Iqdb.query_file(@sp[:file].tempfile, @sc)
|
||||||
elsif @sp[:url].present?
|
elsif @sp[:url].present?
|
||||||
@results = Iqdb.query_url(@sp[:url], @sc)
|
@results = Iqdb.query_url(@sp[:url], @sc)
|
||||||
elsif @sp[:image_id].present?
|
elsif @sp[:image_id].present?
|
||||||
|
Loading…
Reference in New Issue
Block a user