remove redundant divisor

This commit is contained in:
leander committed 2025-11-14 22:35:05 +01:00
1 parent 910b639f95
commit 600b7f5669
1 file changed
+1 -2
+1 -2
View File
@@ -376,8 +376,7 @@ class UserFacts(commands.Cog):
# Add nodes and edges to other users
for other_user, other_mbti in others:
other_index = self.mbti_list.index(other_mbti)
similarity = 1 / self.similarity_matrix[user_index, other_index]
similarity = self.similarity_matrix[user_index, other_index]
edge_length = 2 ** (4 - similarity)
graph.node(other_user.global_name, f"{other_user.global_name}\n{other_mbti}")