mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2025-03-03 22:41:25 +03:00
fix: set utf-8 encoding for config
This commit is contained in:
parent
4f70c6c0e3
commit
52d85edd41
2 changed files with 4 additions and 4 deletions
2
main.py
2
main.py
|
@ -22,7 +22,7 @@ from starlette.responses import FileResponse
|
||||||
from src.middleware.plausible_analytics import PlausibleAnalytics
|
from src.middleware.plausible_analytics import PlausibleAnalytics
|
||||||
from src.routes import index, wallpaper
|
from src.routes import index, wallpaper
|
||||||
|
|
||||||
config = yaml.safe_load(open('config.yaml'))
|
config = yaml.safe_load(open('config.yaml', encoding='utf-8'))
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ import yaml
|
||||||
import httpx
|
import httpx
|
||||||
from user_agents import parse as ua_parse
|
from user_agents import parse as ua_parse
|
||||||
|
|
||||||
config = yaml.safe_load(open('./config.yaml'))
|
config = yaml.safe_load(open('./config.yaml', encoding='utf-8'))
|
||||||
|
|
||||||
class PlausibleAnalytics:
|
class PlausibleAnalytics:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue