From 20840b2d54da637c3bf98cc4c6620ea3cc59700e Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 28 Jun 2025 14:39:33 +0300 Subject: [PATCH] shouts-admin-fix3 --- resolvers/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/admin.py b/resolvers/admin.py index 2fa3e389..c2df08b9 100644 --- a/resolvers/admin.py +++ b/resolvers/admin.py @@ -403,7 +403,7 @@ async def admin_get_shouts( for row in shouts_result: # Get the Shout object from the row - shout = row[0] if isinstance(row, tuple) else row + shout = row[0] if isinstance(row, tuple) else row.Shout if hasattr(row, "Shout") else row # Обрабатываем поле media media_data = [] if hasattr(shout, "media") and shout.media: