adding the default page in case there is no redis entry
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m12s

This commit is contained in:
Pierre Geeraert
2026-01-07 12:08:03 +00:00
parent 77742c1d6f
commit 88a6dd9316
2 changed files with 16 additions and 4 deletions
+7 -4
View File
@@ -35,7 +35,10 @@ def display_key(request,key):
def redirect_to_key(request,key):
value = r.get(key)
print(value)
value_extracted = str(value.decode('utf-8'))
print(value_extracted)
return HttpResponseRedirect(value_extracted)
if !(value):
return render(request, 'blank_page.html',{})
else:
print(value)
value_extracted = str(value.decode('utf-8'))
print(value_extracted)
return HttpResponseRedirect(value_extracted)
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="https://cdn-icons-png.flaticon.com/512/6402/6402576.png">
<title>Streaming</title>
</head>
</html>