Fix clipping on integration add drop down

This commit is contained in:
Jack Kingsman
2026-03-08 22:17:32 -07:00
parent 9d806c608b
commit e99e522573
3 changed files with 17 additions and 2 deletions
+5 -1
View File
@@ -194,7 +194,11 @@ def normalize_contact_route(
expected_bytes = normalized_len * bytes_per_hop
if actual_bytes > expected_bytes >= 0:
normalized_path = normalized_path[: expected_bytes * 2]
elif actual_bytes < expected_bytes and bytes_per_hop > 0 and actual_bytes % bytes_per_hop == 0:
elif (
actual_bytes < expected_bytes
and bytes_per_hop > 0
and actual_bytes % bytes_per_hop == 0
):
normalized_len = actual_bytes // bytes_per_hop
return normalized_path, normalized_len, normalized_mode