fix: передать cfg в контекст positions и history страниц
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -76,6 +76,7 @@ def create_app(cfg: Config) -> FastAPI:
|
||||
|
||||
return templates.TemplateResponse("positions.html", {
|
||||
"request": request,
|
||||
"cfg": cfg,
|
||||
"positions": positions,
|
||||
})
|
||||
|
||||
@@ -88,6 +89,7 @@ def create_app(cfg: Config) -> FastAPI:
|
||||
|
||||
return templates.TemplateResponse("history.html", {
|
||||
"request": request,
|
||||
"cfg": cfg,
|
||||
"trades": trades,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user