insights (wip)

This commit is contained in:
Herculino Trotta committed 2025-02-12 09:48:31 -03:00
1 parent 28b12faaf0
commit 038438fba7
4 files changed
+31 -45

No files matched your search

+1
View File
@@ -3,5 +3,6 @@ from django.urls import path
from . import views
urlpatterns = [
path("insights/", views.index, name="insights_index"),
path("insights/sankey/", views.sankey, name="sankey"),
]
+4
View File
@@ -4,6 +4,10 @@ from apps.transactions.models import Transaction
from apps.insights.utils.sankey import generate_sankey_data
def index(request):
return render(request, "insights/pages/index.html")
def sankey(request):
# Get filtered transactions
transactions = Transaction.objects.filter(date__year=2025)