fix it once again

This commit is contained in:
Donovan Daniels 2024-10-13 04:00:06 -05:00
parent d47f57850e
commit 42ec01d2f5
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -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?