change process
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 6m56s

This commit is contained in:
pierre geeraert
2025-07-31 20:56:46 +01:00
parent 53f4c17a08
commit fe43d274cb
+9 -1
View File
@@ -25,9 +25,17 @@ def handle_survey_form(request):
url = request.GET.get('url')
external_galleries = str(request.GET.get('external_galleries'))
stash_folder = "/stash"
if external_galleries:
print("external_galleries is not null")
performer_external_galleries = stash_folder+"/"+name+"_external_galler>
with open(performer_external_galleries, "a") as f:
f.write(external_galleries)
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:
@@ -39,7 +47,7 @@ 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,'--external_gallery', external_galleries]
command=['bash', '/config/download.sh','--skip_searching_gallery',skip_searching_gallery, '--http_proxy', 'http://gluetun-svc.gluetun.svc:8888', '--BASE_URL', url, '--pornstars', name]
template_manifest['spec']['template']['spec']['containers'][0]['command']=command