mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-21 15:03:56 +02:00
Reworked the tests.
This commit is contained in:
@ -27,8 +27,7 @@ COLOR_PERSON = "#ff5200"
|
||||
|
||||
|
||||
@cached( # type: ignore
|
||||
cache=TTLCache(maxsize=100, ttl=int(os.getenv("PYTHON_CACHE_TTL", "3600"))),
|
||||
key=lambda session, company_id: hash((company_id, str(session.bind))),
|
||||
cache=TTLCache(maxsize=100, ttl=int(os.getenv("PYTHON_CACHE_TTL", "3600")))
|
||||
)
|
||||
def find_all_company_relations() -> pd.DataFrame:
|
||||
"""_summary_.
|
||||
@ -110,7 +109,7 @@ def get_all_company_relations() -> pd.DataFrame:
|
||||
|
||||
@cached( # type: ignore
|
||||
cache=TTLCache(maxsize=100, ttl=int(os.getenv("PYTHON_CACHE_TTL", "3600"))),
|
||||
key=lambda session, company_id: hash((company_id, str(session.bind))),
|
||||
key=lambda drop_min_person_links: hash(drop_min_person_links),
|
||||
)
|
||||
def get_all_person_relations(drop_min_person_links: bool) -> pd.DataFrame:
|
||||
"""These method makes a Database Request for all Persons and their relations, modifies the ID Column and returns the Result as an DataFrame.
|
||||
|
Reference in New Issue
Block a user