Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf #1602

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions sidra_chain_integration/flask_app/routes/loan_processing.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
from flask import Blueprint, request, jsonify
from flask import Blueprint, jsonify, request

from models import LoanApplication

bp = Blueprint('loan_processing', __name__)
bp = Blueprint("loan_processing", __name__)


@bp.route('/loan-processing', methods=['POST'])
@bp.route("/loan-processing", methods=["POST"])
def evaluate_loan_application():
# Create a new loan application
loan_application = LoanApplication(**request.get_json())
db.session.add(loan_application)
db.session.commit()

# Call the LoanProcessingAPI
response = requests.post('http://localhost:5000/loan-processing', json=request.get_json())
response = requests.post(
"http://localhost:5000/loan-processing", json=request.get_json()
)
return response.json()
Loading