fix:int replace

This commit is contained in:
lan
2023-11-30 23:09:48 +08:00
parent 0537a6f9f1
commit 2d3fdf7f2a
+5 -5
View File
@@ -80,11 +80,11 @@ async def startup_event():
async def index(): async def index():
return HTMLResponse( return HTMLResponse(
content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read() content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
.replace('{{title}}', settings.name) .replace('{{title}}', str(settings.name))
.replace('{{description}}', settings.description) .replace('{{description}}', str(settings.description))
.replace('{{keywords}}', settings.keywords) .replace('{{keywords}}', str(settings.keywords))
.replace('{{opacity}}', settings.opacity) .replace('{{opacity}}', str(settings.opacity))
.replace('{{background}}', settings.background) .replace('{{background}}', str(settings.background))
, media_type='text/html', headers={'Cache-Control': 'no-cache'}) , media_type='text/html', headers={'Cache-Control': 'no-cache'})