try
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9m59s

This commit is contained in:
pierre geeraert
2025-07-31 22:23:32 +01:00
parent 8b68d52be0
commit a9b4a95e0c
+3 -4
View File
@@ -35,7 +35,6 @@ def handle_survey_form(request):
skip_searching_gallery = True
else:
print("external_galleries is null")
print("another")
skip_searching_gallery = False
with open('django_code/stash_management/templates/template.stash-pornpics-dowloader.job.yml', 'r') as file:
@@ -47,13 +46,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', '--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(template_manifest)
api_response = v1.create_namespaced_job(body=template_manifest,namespace='stash')
return HttpResponse(api_response)