Skip to content

Commit

Permalink
Revert "DO NOT KEEP this commit - fighting with dev env that won't re…
Browse files Browse the repository at this point in the history
…load"

This reverts commit 6d05174.
  • Loading branch information
Paul F Bugni committed Dec 9, 2024
1 parent 6d05174 commit ebad9fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions patientsearch/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ def user_info():
@api_blueprint.route("/settings/<string:config_key>")
def config_settings(config_key):
"""Non-secret application settings"""
raise ValueError("it's me1!!!!!!!!!!!!")
return jsonify({"message": "ok"})

# workaround no JSON representation for datetime.timedelta
class CustomJSONProvider(DefaultJSONProvider):
Expand All @@ -163,7 +161,7 @@ def default(self, obj):
jsonify_abort(
status_code=400, messag=f"Configuration key {key} not available"
)
return {key: current_app.config.get(key)}
return jsonify({key: current_app.config.get(key)})

config_settings = {}
for key in current_app.config:
Expand All @@ -172,7 +170,7 @@ def default(self, obj):
continue
config_settings[key] = current_app.config.get(key)

return config_settings
return jsonify(config_settings)


@api_blueprint.route("/validate_token", methods=["GET"])
Expand Down

0 comments on commit ebad9fa

Please sign in to comment.