лаба на 3

This commit is contained in:
2026-11-05 21:32:43 +03:00
parent a7063868a4
commit 4602b83074
11 changed files with 676 additions and 9 deletions
+2 -3
View File
@@ -478,7 +478,7 @@ async def create_message(
FROM attachments
WHERE id = ANY (:attachment_ids)
AND chat_id = :chat_id
AND status = 'ready'
AND status != 'failed'
"""),
{
"attachment_ids": data.attachment_ids,
@@ -793,7 +793,7 @@ async def create_attachment(
:size_bytes,
:sha256,
:s3_key,
'ready'
'queued'
)
RETURNING
id,
@@ -852,7 +852,6 @@ async def get_attachment(
ON cm.chat_id = a.chat_id
WHERE a.id = :attachment_id
AND cm.user_id = :current_user_id
AND a.status = 'ready'
"""
),
{