From e589954e1bb2dc2a27ff2c9fd9b11a1ebcc03ec6 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Thu, 15 Aug 2024 19:15:47 +0200 Subject: [PATCH] Shortcut g id --- src/parliamentarch/svg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/parliamentarch/svg.py b/src/parliamentarch/svg.py index 42d5487..dadb688 100644 --- a/src/parliamentarch/svg.py +++ b/src/parliamentarch/svg.py @@ -145,8 +145,6 @@ def _append_grouped_svg_seats( group_number = group_number_fallback group_number_fallback += 1 - block_id = f"{group_number}-{group.sanitized_data}" - group_border_width = group.border_size * seat_actual_radius * canvas_size group_color = group.color @@ -162,7 +160,7 @@ def _append_grouped_svg_seats( buffer.append(f"; stroke-width:{group_border_width:.2f}; stroke:{group_border_color}") # the fourth quote on the next line is intentional buffer.append(f"""" - id="{block_id}">""") + id="{group_number}-{group.sanitized_data}">""") if group.data: buffer.append(f""" {group.data}""")