mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2025-03-04 06:51:24 +03:00
refactor: reorder imports to follow PEP 8 convention
This commit is contained in:
parent
cabcccc0fb
commit
058c9771df
2 changed files with 7 additions and 8 deletions
10
main.py
10
main.py
|
@ -13,16 +13,14 @@ import http
|
|||
|
||||
import uvicorn
|
||||
import yaml
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from starlette.responses import FileResponse
|
||||
from fastapi import FastAPI
|
||||
|
||||
from src.middleware.plausible_analytics import PlausibleAnalytics
|
||||
from src.routes import index, wallpaper
|
||||
|
||||
config = yaml.safe_load(open('./config.yaml'))
|
||||
|
||||
from src.routes import index
|
||||
from src.routes import wallpaper
|
||||
config = yaml.safe_load(open('config.yaml'))
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
|
|
@ -9,9 +9,10 @@ In case of any client-side or server-side errors, no event is sent,
|
|||
and the response is returned as usual.
|
||||
"""
|
||||
|
||||
import httpx
|
||||
import yaml
|
||||
from http import HTTPStatus
|
||||
|
||||
import yaml
|
||||
import httpx
|
||||
from user_agents import parse as ua_parse
|
||||
|
||||
config = yaml.safe_load(open('./config.yaml'))
|
||||
|
|
Loading…
Add table
Reference in a new issue