Try to fix metadata stuff again (does not work)
This commit is contained in:
+12
-10
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user