first commit

This commit is contained in:
Dohyun Lim committed 2026-02-04 16:35:08 +09:00
1 parent f24ff46b09
commit dd16013816
12 files changed
+310 -31

No files matched your search

+3 -2
View File
@@ -7,11 +7,12 @@ Social Upload Background Task
import logging
import os
import tempfile
from datetime import datetime
from pathlib import Path
from typing import Optional
import aiofiles
from app.utils.timezone import now
import httpx
from sqlalchemy import select
from sqlalchemy.exc import SQLAlchemyError
@@ -70,7 +71,7 @@ async def _update_upload_status(
if error_message:
upload.error_message = error_message
if status == UploadStatus.COMPLETED:
upload.uploaded_at = datetime.now()
upload.uploaded_at = now()
await session.commit()
logger.info(