summaryrefslogtreecommitdiff
path: root/server/szurubooru/func/similar.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/szurubooru/func/similar.py')
-rw-r--r--server/szurubooru/func/similar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/func/similar.py b/server/szurubooru/func/similar.py
index 77d7805..37f3f0d 100644
--- a/server/szurubooru/func/similar.py
+++ b/server/szurubooru/func/similar.py
@@ -14,7 +14,7 @@ def find_similar_posts(source_post: model.Post, limit: int) -> List[model.Post]:
# This will help yield results quicker
source_tags = sorted(source_post.tags, key=lambda t: t.post_count)
source_tag_count = len(source_tags)
- max_removals = ceil(source_tag_count / 2) # remove at most 50% of tags
+ max_removals = source_tag_count - 1
tags = source_tags
for x in range(max_removals + 1):