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:
+1
-1
@@ -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
|
||||
""",
|
||||
|
||||
Reference in New Issue
Block a user