Try to fix metadata stuff again (does not work)

This commit is contained in:
Kylian Schmidt
2025-07-21 15:33:33 +02:00
parent 7a9275819a
commit 465f9b6dc6
7 changed files with 26 additions and 62 deletions
+12 -10
View File
@@ -12,17 +12,19 @@ def main():
print("Content-Type: text/plain")
print("Cache-Control: no-cache")
print() # Empty line to end headers
try:
# Call the gallery generation script
result = subprocess.run([
"python3",
"/work/kschmidt/web/generate_gallery.py"
],
capture_output=True,
text=True,
timeout=300) # 5 minute timeout
result = subprocess.run(
[
"python3",
"/work/kschmidt/web/generate_gallery.py"
],
capture_output=True,
text=True,
timeout=300,
)
if result.returncode == 0:
print("Gallery refresh successful!")
print("\nOutput:")
@@ -38,7 +40,7 @@ def main():
if result.stdout:
print("\nStandard output:")
print(result.stdout)
except subprocess.TimeoutExpired:
print("Gallery refresh timed out after 5 minutes")
except Exception as e: