Skip to content

Commit

Permalink
FixFor: broken arrowhead for pairs (#23)
Browse files Browse the repository at this point in the history
sorry, `splines` is not `curve` (sexy) anymore
  • Loading branch information
ames0k0 authored Nov 2, 2023
1 parent b328278 commit 4b4588c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kmua/common/waifu.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def render_waifu_graph(
"beautify": "true",
"compound": "true",
"ranksep": "1",
"splines": "ortho",
},
format="webp",
)
Expand Down Expand Up @@ -158,8 +159,8 @@ def render_waifu_graph(
for user_id, waifu_id in relationships:
dot.edge(
str(user_id), str(waifu_id),
lhead=f"cluster_{waifu_id}" if waifu_id in has_avatar else None,
ltail=f"cluster_{user_id}" if user_id in has_avatar else None
lhead=f"cluster_{waifu_id}" if waifu_id in has_avatar else "",
ltail=f"cluster_{user_id}" if user_id in has_avatar else "",
)

return dot.pipe()
Expand Down

0 comments on commit 4b4588c

Please sign in to comment.