1
Fork 0
mirror of https://github.com/Steffo99/emblematic.git synced 2024-11-21 14:24:18 +00:00

Make sure all icon attributes are strs

This commit is contained in:
Steffo 2024-07-01 17:23:04 +02:00
parent 2f46226ea7
commit 8a0355c4a0
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -25,8 +25,8 @@ def compose_basic(background: bs4.Tag, icon: bs4.Tag, width: int, height: int) -
icon.attrs["width"] = "63%"
icon.attrs["height"] = "63%"
icon.attrs["preserveAspectRatio"] = "xMidYMid meet"
icon.attrs["x"] = width * 0.37 / 2
icon.attrs["y"] = height * 0.37 / 2
icon.attrs["x"] = str(width * 0.37 / 2)
icon.attrs["y"] = str(height * 0.37 / 2)
doc = bs4.BeautifulSoup(f"""
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {width} {height}">