Add trading journal and portfolio tracking
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
||||
from pathlib import Path
|
||||
from trading_models import display_decimal
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from models import money, percent, percent_text, CATEGORIES, ASSET_TYPES, MONTHS
|
||||
|
||||
templates = Jinja2Templates(directory=str(Path(__file__).parent / 'templates'))
|
||||
templates.env.filters.update(money=money, percent=percent_text)
|
||||
templates.env.filters.update(money=money, percent=percent_text, decimal=display_decimal)
|
||||
templates.env.globals.update(compare=percent, categories=CATEGORIES, asset_types=ASSET_TYPES, months=MONTHS)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user