add clean badge generation for each user from database

This commit is contained in:
tcprod 2026-03-15 21:27:12 +01:00
parent 4e55fc8273
commit 0b33342509

View File

@ -28,7 +28,6 @@ class BadgeGeneratorService:
def generate_svg(self, username: str, seat: str, image_base64: bytes) -> str:
with open(self.svg_template, "r", encoding="utf-8") as f:
svg = f.read()
# ToDo: Select font size for long names
svg = svg.replace(">test_username</tspan>", f">{username}</tspan>")
svg = svg.replace(">Platz: XYZ</tspan><", f">Platz: {seat}</tspan><")
if image_base64: