From e8bcb38cca26934e794d6c1974e14ea09b149425 Mon Sep 17 00:00:00 2001 From: Holger Trampe Date: Sat, 23 Oct 2021 11:51:08 +0200 Subject: [PATCH] id aendern --- adm/templates/adm/adm_import_flow.html | 2 ++ api/views.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/adm/templates/adm/adm_import_flow.html b/adm/templates/adm/adm_import_flow.html index 6859577..04c3b11 100644 --- a/adm/templates/adm/adm_import_flow.html +++ b/adm/templates/adm/adm_import_flow.html @@ -263,6 +263,8 @@ } else { + ncfiledata[0] = ['standardid', id]; + console.log(ncfiledata); console.log("NC FILES LOADED, STARTING REBUILDING STANDARDS"); $.ajax({ url: "{% url 'api:apiswitchstandards' %}", diff --git a/api/views.py b/api/views.py index ca34ca3..6da4b89 100644 --- a/api/views.py +++ b/api/views.py @@ -482,7 +482,7 @@ def NCGetFilesForStandardSwitch(request): standard = Standards.objects.get(pk=request.GET.get('standardid')) # Dateien aus NC laden - filesearchdata = '/files/vhdadjangoapi_8fjz47epc6' + '/Agenturdaten_' + str(standard.agency.pk) + '/infinity1' + filesearchdata = '/files/vhdarootadmin_2cdme7ckw' + '/Agenturdaten_' + str(standard.agency.pk) + '/infinity1' #filesearchdata = 'infinity' r = requests.request("SEARCH", settings.NEXTCLOUD_URL + "remote.php/dav/", data=filesearchdata, headers={'Content-Type' : 'text/xml', 'Authorization' : "Bearer " + request.user.profile.nc_sid})