Skip to content

Commit

Permalink
Merge pull request #3414 from Yann-J/patch-1
Browse files Browse the repository at this point in the history
Remove double slash in Enketo preview API call
  • Loading branch information
jnm authored Aug 18, 2021
2 parents 19b4b90 + 3af956c commit 266c12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpi/views/v2/asset_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def preview(self, request, *args, **kwargs):
# Use Enketo API to create preview instead of `preview?form=`,
# which does not load any form media files.
response = requests.post(
f'{settings.ENKETO_SERVER}/'
f'{settings.ENKETO_SERVER}'
f'{settings.ENKETO_PREVIEW_ENDPOINT}',
# bare tuple implies basic auth
auth=(settings.ENKETO_API_TOKEN, ''),
Expand Down

0 comments on commit 266c12b

Please sign in to comment.