Skip to content

Commit

Permalink
flake8 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ukanga committed Mar 11, 2019
1 parent e97aacc commit d607c11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onadata/apps/api/viewsets/xform_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def login(self, request, **kwargs):
@action(methods=['GET'], detail=True)
def enketo(self, request, **kwargs):
"""Expose enketo urls."""
survey_type = self.kwargs.get('survey_type') or request.GET.get('survey_type')
survey_type = self.kwargs.get('survey_type') or \
request.GET.get('survey_type')
self.object = self.get_object()
form_url = get_form_url(
request, self.object.user.username, settings.ENKETO_PROTOCOL,
Expand Down

0 comments on commit d607c11

Please sign in to comment.