This commit is contained in:
parent
1c194eea3f
commit
93ca2894dd
|
|
@ -241,7 +241,7 @@
|
|||
var ncfiledata = [];
|
||||
//Anlegen der Standarddateien
|
||||
function rebuildingStandards(id){
|
||||
ncfiledata = [];
|
||||
var ncfiledata = [];
|
||||
$("#cloud_process_standards").show();
|
||||
ncfiledata[0] = ['standardid', id];
|
||||
console.log("LOADING NC FILES");
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1182,6 +1182,7 @@ def getNCDirInfosURL(request, ncid):
|
|||
def getAGGroupQuotaData(request):
|
||||
r = requests.request("PROPFIND", settings.NEXTCLOUD_URL + "remote.php/dav/files/" + request.user.username + "/Agenturdaten", headers={'Content-Type' : 'text/xml', 'Authorization' : "Bearer " + request.user.profile.nc_sid})
|
||||
# IN USE
|
||||
try:
|
||||
split_response = r.text.split("<d:quota-used-bytes>")
|
||||
inuse = split_response[1].split("</d:quota-used-bytes>")[0]
|
||||
|
||||
|
|
@ -1192,6 +1193,8 @@ def getAGGroupQuotaData(request):
|
|||
# PERCENT VALUE
|
||||
percent = (100 / int(quota))*int(inuse)
|
||||
return [quota, inuse, str(round(percent, 0)).replace(",", ".")]
|
||||
except:
|
||||
return [0, 0, 0]
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue