mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-17 06:11:27 +01:00
insights (wip)
This commit is contained in:
1 parent
28b12faaf0
commit
038438fba7
4 files changed
+31
-45
No files matched your search
@@ -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