Skip to content

Commit

Permalink
api - delete breeder return json string instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cherusk committed Nov 17, 2023
1 parent e775e48 commit a01dcc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def breeders_name_delete(breeder_name): # noqa: E501
breeder_name=breeder_name)
archive.archive_db.execute(db_info=db_config, query=__query)

return Response(dict(message="Purged Breeder named {breeder_name}"),
return Response(json.dumps(dict(message="Purged Breeder named {breeder_name}")),
status=200,
mimetype='application/json')

Expand Down

0 comments on commit a01dcc6

Please sign in to comment.