From 2de5727ea27f2dd2bc2df01a003133f119e67b94 Mon Sep 17 00:00:00 2001 From: Leon Noe Jovan Date: Sun, 23 Jan 2022 22:53:11 +0100 Subject: [PATCH] api for top upload graph --- app.py | 1 + templates/solar-pogodbe.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 60fe4fb..2f51002 100644 --- a/app.py +++ b/app.py @@ -323,6 +323,7 @@ def solar(text): collaborators=collaborators, cooperation_history=cooperation_history, user_id=current_user.id, + institution_id=current_user_institution.id, is_admin=is_admin, is_institution_coordinator=current_user_institution_coordinator) elif text.startswith('admin/') or text == 'admin': users = portal.solar.get_all_users_join_institutions() diff --git a/templates/solar-pogodbe.html b/templates/solar-pogodbe.html index 5930566..d3c5b3b 100644 --- a/templates/solar-pogodbe.html +++ b/templates/solar-pogodbe.html @@ -103,7 +103,7 @@ var data; // Parse the Data - d3.json("/topuploads-by-user/").then(function(jsondata) { + d3.json("/topuploads-institution/{{institution_id}}").then(function(jsondata) { if(Object.keys(jsondata).length < 1) { return; }