From 04fd2b3330d4fe11306a271bafa2d5fd8a93b1f6 Mon Sep 17 00:00:00 2001 From: Holger Trampe Date: Sat, 23 Oct 2021 01:54:11 +0200 Subject: [PATCH] uf8 error ist halt so normaler prozess --- adm/templates/adm/adm_import_flow.html | 5 +++-- api/views.py | 8 +------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/adm/templates/adm/adm_import_flow.html b/adm/templates/adm/adm_import_flow.html index 3133978..1b75cc5 100644 --- a/adm/templates/adm/adm_import_flow.html +++ b/adm/templates/adm/adm_import_flow.html @@ -28,9 +28,10 @@ $(document).ready(function(){ // FIRST CALL GROUPS, When Groups finished User will call by Groups - //createAgencyGroups(groupids[0]); + createAgencyGroups(groupids[0]); + //DEV - rebuildingStandards(standards[0]); + //rebuildingStandards(standards[0]); //addGroupFolder(); //addDirs(dirids[0]); }) diff --git a/api/views.py b/api/views.py index 13c985a..4e610d7 100644 --- a/api/views.py +++ b/api/views.py @@ -444,13 +444,7 @@ def NCSwitchStandardFiles(request): response_status = "OK" for f in standard.addedfiles.all(): - - #filesearchdata = '/files/' + settings.NEXTCLOUD_USER_API + '/Agenturdaten_' + str(standard.agency.pk) + 'infinity' + file_name_normal_utf8 + '' - - filesearchdata = '/files/' + settings.NEXTCLOUD_USER_API + '/Agenturdateninfinity' + f.name + '' - - filesearchdata_temp = filesearchdata.encode('UTF-8') - filesearchdata = filesearchdata_temp.decode('UTF-8') + filesearchdata = '/files/' + settings.NEXTCLOUD_USER_API + '/Agenturdaten_' + str(standard.agency.pk) + 'infinity' + f.name + '' r = requests.request("SEARCH", settings.NEXTCLOUD_URL + "remote.php/dav", data=filesearchdata, auth=(settings.NEXTCLOUD_USER_API, settings.NEXTCLOUD_PW_API), headers={'Content-Type' : 'text/xml'}) fileid = getFileIdFromXML(r.text)