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; }