Skip to content

Commit

Permalink
Fixed pylinter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Dec 2, 2023
1 parent 89fd505 commit b3cc161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint app --disable=C0116,C0114,C0115,C0411,E0401,W0611,W0622,W0719,C0103,W1514,R0903,R1732
pylint app --disable=C0116,C0114,C0115,C0411,E0401,W0611,W0622,W0719,C0103,W1514,R0903,R1732,W0718
- name: Analysing the code with pycodestyle
run: |
pycodestyle app
3 changes: 1 addition & 2 deletions app/features/readers/reader_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ def accesses(device_id):

@reader_blue_print.route("/<device_id>/log_operation", methods=["POST"])
def log_operation(device_id):

json_data = json.loads(request.get_json())

logging.info("Received request: " + str(json_data))
logging.info("Received request: %s", str(json_data))

operation = json_data["operation"]
if operation not in ["lock", "unlock", "deny_access"]:
Expand Down

0 comments on commit b3cc161

Please sign in to comment.