diff --git a/django_code/stash_management/apps.py b/django_code/stash_management/apps.py index 26980e4..f6d4b16 100644 --- a/django_code/stash_management/apps.py +++ b/django_code/stash_management/apps.py @@ -47,14 +47,13 @@ def handle_survey_form(request): template_manifest['spec']['template']['spec']['containers'][0]['name'] ="stash-pornpics-dowloader-"+name #edit the command based on the input - command=['bash', '/config/download.sh','--skip_searching_gallery',skip_searching_gallery, '--http_proxy', 'http://gluetun-svc.gluetun.svc:8888', '--BASE_URL', url, '--pornstars', name] + command=['bash', '/config/download.sh', '--http_proxy', 'http://gluetun-svc.gluetun.svc:8888', '--BASE_URL', url, '--pornstars', name] template_manifest['spec']['template']['spec']['containers'][0]['command']=command #execute based on the value - api_response = v1.create_namespaced_job(body=template_manifest,namespace='stash') - - return HttpResponse(api_response) + #api_response = v1.create_namespaced_job(body=template_manifest,namespace='stash') + return HttpResponse(template_manifest) diff --git a/requirements.txt b/requirements.txt index f209c01..6264872 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,5 @@ kubernetes ruamel.yaml pyyaml django-bootstrap-v5 -jinja2 \ No newline at end of file +jinja2 +watchdog