[ВОЛК] отображение картинки в детализации площадки
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-12-25 20:42:03 +03:00
parent 4703043062
commit 0490135d9e
2 changed files with 33 additions and 3 deletions
+2 -1
View File
@@ -1129,7 +1129,7 @@ def api_category_details(category_id):
try:
with db.conn.cursor() as cursor:
cursor.execute("""
SELECT AUTO_ID, ID, TITLE, description
SELECT AUTO_ID, ID, TITLE, description, image_url
FROM categories
WHERE ID = %s
""", (category_id,))
@@ -1152,6 +1152,7 @@ def api_category_details(category_id):
'id': category['ID'],
'title': category['TITLE'] or '',
'description': category['description'] or '',
'image_url': category['image_url'] or '',
'event_count': event_count
})
except Exception as e: