This commit is contained in:
@@ -578,7 +578,12 @@ async def load_shouts_search(
|
||||
logger.warning("[load_shouts_search] Skipping None shout object")
|
||||
continue
|
||||
|
||||
# Проверяем тип объекта - может быть dict или ORM объект
|
||||
if isinstance(shout, dict):
|
||||
shout_dict: dict[str, Any] = shout
|
||||
else:
|
||||
shout_dict = shout.dict()
|
||||
|
||||
shout_id_str = shout_dict.get("id")
|
||||
if not shout_id_str:
|
||||
logger.warning(f"[load_shouts_search] Skipping shout without id: {shout_dict}")
|
||||
|
||||
Reference in New Issue
Block a user