Update to fit stack
This commit is contained in:
+3
-2
@@ -70,7 +70,7 @@ async def lifespan(app: FastAPI):
|
||||
sched.shutdown(wait=False)
|
||||
|
||||
|
||||
app = FastAPI(title="Finance", lifespan=lifespan, docs_url=None, redoc_url=None)
|
||||
app = FastAPI(title="Spendr", lifespan=lifespan, docs_url=None, redoc_url=None)
|
||||
app.mount("/static", StaticFiles(directory=os.path.join(BASE_DIR, "static")), name="static")
|
||||
templates = Jinja2Templates(directory=os.path.join(BASE_DIR, "templates"))
|
||||
|
||||
@@ -100,7 +100,8 @@ def icon(name: str, cls: str = "") -> Markup:
|
||||
|
||||
|
||||
templates.env.filters.update(eur=eur, num=num, pct=pct)
|
||||
templates.env.globals.update(icon=icon)
|
||||
templates.env.globals.update(icon=icon, sign_out_url=os.getenv(
|
||||
"SIGN_OUT_URL", "https://auth.dv3.app/outpost.goauthentik.io/sign_out"))
|
||||
templates.env.globals.update(today=date.today, rec_state=rec_mod.state, monthly_eq=rec_mod.monthly_equivalent)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user