Skip to content

Commit

Permalink
Get formatter value also on POST
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Nov 23, 2023
1 parent 4e0cc56 commit 8e54864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions g3w-admin/core/api/base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ def response_data_mode(self, request, export_features=False):

# check for formatter query url param and check if != 0
export_features = False
if 'formatter' in request.query_params:
formatter = request.query_params.get('formatter')
formatter = str(request.query_params.get('formatter', request.data.get('formatter')))
if formatter:
if formatter.isnumeric() and int(formatter) == 1:
export_features = True

Expand Down

0 comments on commit 8e54864

Please sign in to comment.