From 5b59f8e13974f6bbff3a173a16c7228887cde838 Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Sun, 2 Mar 2025 17:32:04 +0100 Subject: [PATCH] mod letter --- backend/open_webui/models/users.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/models/users.py b/backend/open_webui/models/users.py index 1cf2a92..3e352b9 100644 --- a/backend/open_webui/models/users.py +++ b/backend/open_webui/models/users.py @@ -397,9 +397,11 @@ class UsersTable: text_width = bbox[2] - bbox[0] text_hight = bbox[3] - bbox[1] x = (size[0] - text_width) // 2 - y = (size[1] - text_hight - 130) // 2 # Poprawione obliczenie pozycji y - print(y) - print(text_hight) + y = (size[1] - text_hight - 133) // 2 # Poprawione obliczenie pozycji y + print(str(text_hight)) + print(str(size[1] - bbox[1])) + print(str(size[1] - text_hight - 133)) + print(str(y)) draw.text((x, y), letter, font=font, fill=text_color) buffered = io.BytesIO()