Skip to content

Commit 101b472

Browse files
committed
fix: pre-commit
1 parent 37264cd commit 101b472

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

frontend/app/src/routes/runs/[id]/+page.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,6 @@
529529
<span class="text-sm font-medium">Files</span>
530530
{#if outputsLoading}
531531
<Loader2 class="h-3.5 w-3.5 animate-spin text-muted-foreground" />
532-
{:else if outputsError}
533-
<span class="text-xs text-destructive">{outputsError}</span>
534532
{:else if outputsUnavailable}
535533
<span class="text-xs text-muted-foreground">no longer available</span>
536534
{:else if outputFiles && outputFiles.length > 0}

src/pypsa_app/backend/api/routes/public.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ async def get_public_run(run: Run = Depends(require_public_run)) -> JSONResponse
3838
)
3939

4040
is_terminal = run.status in RUN_TERMINAL_STATUSES
41-
cache_control = (
42-
"public, max-age=300" if is_terminal else "no-cache"
43-
)
41+
cache_control = "public, max-age=300" if is_terminal else "no-cache"
4442

4543
return JSONResponse(
4644
content=data.model_dump(mode="json"),

0 commit comments

Comments
 (0)