Skip to content

Commit

Permalink
Get formatter value also on POST (#671)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored Nov 27, 2023
1 parent 941a3fd commit df7514a
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 df7514a

Please sign in to comment.