Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Apr 19, 2024
1 parent 43ab93e commit e253fa3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions onadata/apps/api/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,7 @@ def get_data_value_objects(value):
return get_entity_list_export_response(request, obj, filename)

dataview = obj if isinstance(obj, DataView) else False
xform = obj

if isinstance(obj, DataView):
xform = obj.xform
xform = obj.xform if isinstance(obj, DataView) else obj

return custom_response_handler(
request,
Expand Down

0 comments on commit e253fa3

Please sign in to comment.