Skip to content

Commit

Permalink
set better status code
Browse files Browse the repository at this point in the history
Co-authored-by: Norman Hooper <[email protected]>
  • Loading branch information
mkangia and kaapstorm authored Aug 21, 2024
1 parent d2b1a44 commit 7ea60ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hq_superset/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,7 @@ def post_dataset_change(self) -> FlaskResponse:
)

process_dataset_change.delay(request_json)
return json_success('Dataset change accepted')
return json_success(
'Dataset change accepted'
status=HTTPStatus.ACCEPTED.value,
)

0 comments on commit 7ea60ff

Please sign in to comment.