From 2f5eab18b1ab28fcb4f416248076ce574998d718 Mon Sep 17 00:00:00 2001 From: vastsa Date: Sat, 10 Oct 2026 18:57:15 +0800 Subject: [PATCH] fix: restore lint and Docker theme build --- Dockerfile | 2 +- apps/base/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bff1cbb..09f2520 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,7 +54,7 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo 'Asia/Shanghai' > /etc/timezone # 从构建阶段复制编译好的前端主题 -COPY --from=frontend-builder /build/fronted-2024/dist ./themes/2024 +COPY --from=frontend-builder /build/FileCodeBox/themes/2024 ./themes/2024 COPY --from=frontend-builder /build/fronted-2023/dist ./themes/2023 # 安装系统安全更新 + Python 依赖 diff --git a/apps/base/views.py b/apps/base/views.py index b5ed711..8268a45 100644 --- a/apps/base/views.py +++ b/apps/base/views.py @@ -10,6 +10,7 @@ from typing import Optional, Tuple, Union from fastapi import APIRouter, Form, Request, UploadFile, File, Depends, HTTPException from pydantic import BaseModel, ValidationError +from starlette import status from starlette.responses import HTMLResponse, Response from tortoise.expressions import Case, F, Q, When