shouts-admin-fix3
This commit is contained in:
@@ -403,7 +403,7 @@ async def admin_get_shouts(
|
|||||||
|
|
||||||
for row in shouts_result:
|
for row in shouts_result:
|
||||||
# Get the Shout object from the row
|
# 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
|
||||||
media_data = []
|
media_data = []
|
||||||
if hasattr(shout, "media") and shout.media:
|
if hasattr(shout, "media") and shout.media:
|
||||||
|
|||||||
Reference in New Issue
Block a user