@yagebu {{ charts.chart_data }}
evaluates correctly within an extension.application.py
for extension_report()
includes these lines:344 return render_template( "_layout.html", content=content, page_title=extension.report_title)
and _layout.html
contains:<script type="application/json" id="chart-data">{{ charts.chart_data|tojson|safe }}</script>
begin
and end
arguments like so:FavaExtensionBase.extensionname(self, begin=None, end=None)
None
when my extension is called. What gives?FavaExtensionBase.ledger.query_shell.execute_query
?
hi, I have a question related to expenses aggregation and budget in fava: say that I have a number of expenses categories named Expenses:John:Media, Expenses:John:Groceries, Expenses:John:Clothing.
Additionally, I have a budget set for Expenses:John (using custom "budget"
).
In the Expenses view of fava, the aggregation per period (say quarter), does not seem to aggregate by sub-category in relation to the main category.
In other words, I would like to see the sum of all expenses for John compared to the set budget but I only see the subcategories spend but no use of the overall budget for John. I hope it makes sense :)
<script type="application/json" id="chart-data">{{ charts.chart_data|tojson|safe }}</script>
in your extension template could work. But please do note that this might break, I consider the charts an internal implementation detail and want to keep the freedom to modify how they work.