diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2020-09-01 14:06:22 -0400 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2020-09-01 14:07:39 -0400 |
| commit | 0dd427755b601da8dadf9af1a34ecad03f8446f9 (patch) | |
| tree | 7f7e072132a834f1ac64e973a4ef1fd8d5a46a94 /server/szurubooru/api/post_api.py | |
| parent | 67a5dd7c18758304d42716383eb9497a143142b9 (diff) | |
client+server: fix linter issues due to updated pre-commit hooks
Diffstat (limited to 'server/szurubooru/api/post_api.py')
| -rw-r--r-- | server/szurubooru/api/post_api.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/szurubooru/api/post_api.py b/server/szurubooru/api/post_api.py index bf40bc0..daba7f7 100644 --- a/server/szurubooru/api/post_api.py +++ b/server/szurubooru/api/post_api.py @@ -301,7 +301,10 @@ def get_posts_by_image( ctx, posts.search_by_image_exact(content) ), "similarPosts": [ - {"distance": distance, "post": _serialize_post(ctx, post),} + { + "distance": distance, + "post": _serialize_post(ctx, post), + } for distance, post in lookalikes ], } |