flow standard

This commit is contained in:
Holger Trampe 2021-10-23 16:41:07 +02:00
parent 62e1f1806f
commit 21e4abc27d
5 changed files with 10 additions and 4 deletions

View File

@ -28,10 +28,7 @@
$(document).ready(function(){
// FIRST CALL GROUPS, When Groups finished User will call by Groups
//createAgencyGroups(groupids[0]);
// FÜR SCHOLL
addStandardFilesFiles(standard_files[0]);
createAgencyGroups(groupids[0]);
//DEV
//rebuildingStandards(standards[0]);

View File

@ -5,6 +5,8 @@
<h4>Agenturimport</h4>
<small>Agenturen können hier importiert werden und erhalten einen detallierten Bericht. Bereits importierte Agenturen speichern ihre MainGroupID in Nextcloud</small>
<hr>
<a href="{% url 'api:apisetuserstatus' %}" class="btn btn-danger btn-sm">Nutzerstatus von Nutzer initialisieren</a>
<hr>
<table class="table table-hover" id="agdata" >
<thead>
<tr>

View File

@ -25,6 +25,7 @@ urlpatterns = [
path('wd/<int:pk>/delete', AdmWorkdayDelete.as_view(), name="adm-workday-delete"),
path('wd/break/<int:pk>/delete', AdmBreakDelete.as_view(), name="adm-break-delete"),
path('wd/<int:pk>/break/add', AdmAddBreak.as_view(), name="adm-break-add"),
# MIGRATION
path('mig/aggroupfolder/<int:agencypk>', createAgGroupFolder, name="mig-groupfolder"),
]

View File

@ -24,6 +24,7 @@ urlpatterns = [
path('prepareswitchstandards/', views.NCGetFilesForStandardSwitch, name="apiswitchstandardsprepare"),
path('setlog/', views.SetUserData, name="apisetlog"),
path('setinituserstat/', views.SetInitUserStat, name="apisetuserstatus"),
# EXTERNAL FROM NC
path('logout/<str:uid>', views.apilogout, name="api-logout"),
path('uschanged/<str:uid>/<str:sid>', views.userChangedInNc, name="api-userchanged"),

View File

@ -422,6 +422,11 @@ def SetUserData(request):
@api_view(['GET'], )
def SetInitUserStat(request):
r = requests.post(settings.NEXTCLOUD_URL + "ocs/v2.php/apps/da_agency/api/v1/setuserstatusinit", auth=(settings.NEXTCLOUD_USER_API, settings.NEXTCLOUD_PW_API))
return JsonResponse({'status' : True, 'message': r.text})
def getFileIdFromXML(xmlresponse):
try: