mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 00:04:01 +02:00
Added an experimental filter for minimally networked persons
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
"""Dash elements."""
|
||||
import os
|
||||
|
||||
import pandas as pd
|
||||
import plotly.graph_objs as go
|
||||
@ -60,7 +61,7 @@ def get_finance_data(session: Session) -> pd.DataFrame:
|
||||
|
||||
|
||||
@cached( # type: ignore
|
||||
cache=TTLCache(maxsize=1, ttl=300),
|
||||
cache=TTLCache(maxsize=1, ttl=int(os.getenv("PYTHON_CACHE_TTL", "3600"))),
|
||||
key=lambda session: 0 if session is None else str(session.bind),
|
||||
)
|
||||
def get_options(session: Session | None) -> dict[int, str]:
|
||||
|
Reference in New Issue
Block a user