Skip to content

Commit

Permalink
Merge pull request #485 from kobotoolbox/484-no-auto-export
Browse files Browse the repository at this point in the history
Disable automatic export creation in `export_list`
  • Loading branch information
noliveleger committed Oct 9, 2018
2 parents f73476d + 40c67f2 commit ad21245
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions onadata/apps/viewer/views.py
Expand Up @@ -405,15 +405,6 @@ def export_list(request, username, id_string, export_type):
'token': export_token,
}

if should_create_new_export(xform, export_type):
try:
create_async_export(
xform, export_type, query=None, force_xlsx=True,
options=options)
except Export.ExportTypeError:
return HttpResponseBadRequest(
_("%s is not a valid export type" % export_type))

metadata = MetaData.objects.filter(xform=xform,
data_type="external_export")\
.values('id', 'data_value')
Expand Down

0 comments on commit ad21245

Please sign in to comment.