diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py index de58db0..51d11f3 100644 --- a/server/szurubooru/func/posts.py +++ b/server/szurubooru/func/posts.py @@ -553,11 +553,13 @@ def search_by_image_exact(image_content): def search_by_image(image_content): + ret = [] for result in image_hash.search_by_image(image_content): - yield PostLookalike( + ret.append(PostLookalike( score=result.score, distance=result.distance, - post=get_post_by_id(result.path)) + post=get_post_by_id(result.path))) + return ret def populate_reverse_search():