api for top upload graph

This commit is contained in:
Leon Noe Jovan 2022-01-23 22:53:11 +01:00
parent 30f96d4fdc
commit 2de5727ea2
2 changed files with 2 additions and 1 deletions

1
app.py
View File

@ -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()

View File

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