Skip to content

Commit a2b0bad

Browse files
fix flak8 linting
1 parent 8af7a31 commit a2b0bad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

service/routes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def create_accounts():
6060
######################################################################
6161
# LIST ALL ACCOUNTS
6262
######################################################################
63+
6364
@app.route("/accounts", methods=["GET"])
6465
def list_accounts():
6566
"""
@@ -94,6 +95,7 @@ def get_accounts(account_id):
9495
######################################################################
9596
# UPDATE AN EXISTING ACCOUNT
9697
######################################################################
98+
9799
@app.route("/accounts/<int:account_id>", methods=["PUT"])
98100
def update_accounts(account_id):
99101
"""
@@ -114,6 +116,7 @@ def update_accounts(account_id):
114116
######################################################################
115117
# DELETE AN ACCOUNT
116118
######################################################################
119+
117120
@app.route("/accounts/<int:account_id>", methods=["DELETE"])
118121
def delete_accounts(account_id):
119122
"""
@@ -132,7 +135,6 @@ def delete_accounts(account_id):
132135
# U T I L I T Y F U N C T I O N S
133136
######################################################################
134137

135-
136138
def check_content_type(media_type):
137139
"""Checks that the media type is correct"""
138140
content_type = request.headers.get("Content-Type")

0 commit comments

Comments
 (0)