mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-23 09:08:39 +02:00
insights (wip)
This commit is contained in:
@@ -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,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)
|
||||
|
||||
Reference in New Issue
Block a user