api for top upload graph
This commit is contained in:
parent
30f96d4fdc
commit
2de5727ea2
1
app.py
1
app.py
|
@ -323,6 +323,7 @@ def solar(text):
|
||||||
collaborators=collaborators,
|
collaborators=collaborators,
|
||||||
cooperation_history=cooperation_history,
|
cooperation_history=cooperation_history,
|
||||||
user_id=current_user.id,
|
user_id=current_user.id,
|
||||||
|
institution_id=current_user_institution.id,
|
||||||
is_admin=is_admin, is_institution_coordinator=current_user_institution_coordinator)
|
is_admin=is_admin, is_institution_coordinator=current_user_institution_coordinator)
|
||||||
elif text.startswith('admin/') or text == 'admin':
|
elif text.startswith('admin/') or text == 'admin':
|
||||||
users = portal.solar.get_all_users_join_institutions()
|
users = portal.solar.get_all_users_join_institutions()
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
var data;
|
var data;
|
||||||
// Parse the 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) {
|
if(Object.keys(jsondata).length < 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user