This commit is contained in:
2026-07-20 10:51:22 +08:00
parent 6d9013e9fd
commit b5ffb45b7a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ __pycache__/
*.db
.env
.venv/
certcenter.db
# Frontend
frontend/node_modules/
frontend/dist/
+2 -2
View File
@@ -614,14 +614,14 @@ async def _render_script(domain: str, server_name: str, os: str, db: AsyncSessio
jinja_env = Environment(loader=FileSystemLoader(str(template_dir)))
result = await db.execute(select(Server).where(Server.name == server_name))
server = result.scalar_one_or_none()
server = result.scalars().first()
if not server:
raise HTTPException(404, "Server not found")
result = await db.execute(
select(Domain).where(Domain.domain == domain, Domain.server_id == server.id)
)
d = result.scalar_one_or_none()
d = result.scalars().first()
if not d:
raise HTTPException(404, "Domain not found for this server")
BIN
View File
Binary file not shown.