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 uvicorn
|
||||||
import yaml
|
import yaml
|
||||||
|
from fastapi import FastAPI
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from starlette.responses import FileResponse
|
from starlette.responses import FileResponse
|
||||||
from fastapi import FastAPI
|
|
||||||
from src.middleware.plausible_analytics import PlausibleAnalytics
|
from src.middleware.plausible_analytics import PlausibleAnalytics
|
||||||
|
from src.routes import index, wallpaper
|
||||||
|
|
||||||
config = yaml.safe_load(open('./config.yaml'))
|
config = yaml.safe_load(open('config.yaml'))
|
||||||
|
|
||||||
from src.routes import index
|
|
||||||
from src.routes import wallpaper
|
|
||||||
|
|
||||||
app = FastAPI()
|
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.
|
and the response is returned as usual.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import httpx
|
|
||||||
import yaml
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
|
||||||
|
import yaml
|
||||||
|
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'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue