fix: content quality, image format, task monitor, calendar data source, search UI & sort

This commit is contained in:
Yuzhiran Dev
2026-05-26 11:26:10 +08:00
parent b2d043b231
commit ac8644d752
36 changed files with 2294 additions and 873 deletions
+4 -3
View File
@@ -2,7 +2,7 @@
"""发布管理 API"""
from fastapi import APIRouter, HTTPException, Depends, Request
from pydantic import BaseModel
from datetime import datetime
from datetime import datetime, timezone, timedelta
from typing import Optional, List
from ..database import get_db
@@ -86,8 +86,9 @@ async def create_publish_record(
))
topic.status = '已发布'
topic.updated_at = datetime.now()
topic.published_at = datetime.now().date()
_now = datetime.now(timezone(timedelta(hours=8)))
topic.updated_at = _now
topic.published_at = _now.date()
db.commit()
db.expire_all()
db.refresh(topic)