Skip to content

Commit

Permalink
fix: has photo now works for intyg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Hagberg committed Mar 22, 2023
1 parent 9f4a1b2 commit a0bb373
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/cert_acess.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_certificate_data(ind, user_id):
"herd": herd,
"fullname": fullname,
"issue_date": date,
"photos": False,
"photos": "Ja" if ind["has_photo"] else "Nej",
}
ind["notes"] = ".\r\n ".join(
[
Expand Down
1 change: 1 addition & 0 deletions frontend/src/individual_certificate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export function IndividualCertificate({
name: individual?.name,
litter_size: individual?.litter_size,
litter_size6w: individual?.litter_size6w,
has_photo: individual?.has_photo,
notes: individual?.notes,
sex: individual?.sex,
genebank: individual?.genebank,
Expand Down

0 comments on commit a0bb373

Please # to comment.