diff --git a/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py b/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py index e852343..8e4c99f 100644 --- a/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py +++ b/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py @@ -50,11 +50,11 @@ class LineType(IntEnum): def create_own_style(params: dict): output_text = ' ownStyles="{"0":{' first_key = True - for key in params.keys(): + for key in params: if params[key] is not None: if not first_key: - output_text += ', ' - output_text += f'"{key}":"{params[key]}"' + output_text += ", " + output_text += f""{key}":"{params[key]}"" first_key = False output_text += '}}"' return output_text @@ -126,8 +126,8 @@ def edge_component( ) if line_type == LineType.DASHED or color is not None: output += create_own_style({ - 'strokeStyle': color, - 'lineDash': '2' if line_type == LineType.DASHED else None, + "strokeStyle": color, + "lineDash": "2" if line_type == LineType.DASHED else None, }) output += ">\n" return output