Skip to content

Commit

Permalink
Added 404s to yaml for retrieving ffq and changed text above ffq pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
dhakim87 committed Oct 29, 2020
1 parent 475551e commit 8941dc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions microsetta_interface/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,9 @@ paths:
type: string
'302':
description: Redirecting to necessary action
'404':
description: No such pdf


'/accounts/{account_id}/sources/{source_id}/surveys/{survey_id}/reports/topfoodreport/pdf':
# Attempts to generate the vioscreen top food report pdf from this vioscreen survey
Expand All @@ -532,6 +535,9 @@ paths:
responses:
'200':
description: Top Food Report pdf
'404':
description: No such pdf


'/check_kit_valid':
get:
Expand Down
2 changes: 1 addition & 1 deletion microsetta_interface/templates/embedded_pdf.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ html, body, embed {
{% block content %}
<!-- TODO: Needs an animated loading bar -->
<div class="alert alert-info" role="alert">
This report is generated by a third party. Any identifying personal information: age, height, weight, etc was not shared in the generation of this report.
This report is generated by a third party without information regarding age, height or weight.
</div>
<embed class="m-3 w-100 h-100" src="{{link_to_pdf}}"/>
{% endblock %}

0 comments on commit 8941dc0

Please sign in to comment.