Update database query and key handling in admin user editor

- Modify get_keys function to return all columns in keys table
- Update admin user editor to handle full key record instead of just email
- Cast tg_id to integer in user record processing
- Adjust key display and callback data generation to use full key record
This commit is contained in:
Zakhar Izmaylov
2025-01-31 02:41:40 +03:00
parent b04bc4dca5
commit c41b77d365
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ async def get_keys(tg_id: int, session: Any):
try:
records = await session.fetch(
"""
SELECT client_id, email, created_at, key
SELECT *
FROM keys
WHERE tg_id = $1
""",