Skip to content

Commit

Permalink
Fix upload signée preview
Browse files Browse the repository at this point in the history
  • Loading branch information
syldb committed Feb 7, 2025
1 parent a2658b4 commit 0bc52bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-branch-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Test and deploy to staging"
on:
push:
branches:
- main
- fix-preview-signe

env:
DATABASE_URL: postgres://apilos:apilos@localhost:5432/apilos
Expand Down
4 changes: 2 additions & 2 deletions conventions/tests/views/test_preview_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def logged_in_user(client, convention):
),
(
ConventionStatut.A_SIGNER.label,
"00000000-0000-0000-0000-000000000000.pdf",
b"Test PDF en instruction",
"test-signed-file.pdf",
b"Test PDF signes",
),
],
)
Expand Down
1 change: 1 addition & 0 deletions conventions/views/conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ def display_pdf(request, convention_uuid):
if (
convention.statut
in [
ConventionStatut.A_SIGNER.label,
ConventionStatut.SIGNEE.label,
ConventionStatut.RESILIEE.label,
ConventionStatut.DENONCEE.label,
Expand Down

0 comments on commit 0bc52bc

Please sign in to comment.