feat: add integration tests for project and scenario lifecycles, update templates to new Starlette signature, and optimize project retrieval logic
This commit is contained in:
@@ -105,10 +105,9 @@ def dashboard_home(
|
||||
uow: UnitOfWork = Depends(get_unit_of_work),
|
||||
) -> HTMLResponse:
|
||||
context = {
|
||||
"request": request,
|
||||
"metrics": _load_metrics(uow),
|
||||
"recent_projects": _load_recent_projects(uow),
|
||||
"simulation_updates": _load_simulation_updates(uow),
|
||||
"scenario_alerts": _load_scenario_alerts(request, uow),
|
||||
}
|
||||
return templates.TemplateResponse("dashboard.html", context)
|
||||
return templates.TemplateResponse(request, "dashboard.html", context)
|
||||
|
||||
Reference in New Issue
Block a user