From b3cc16153e91579346656f77a5a59cecfd043de7 Mon Sep 17 00:00:00 2001 From: vovastelmashchuk Date: Sat, 2 Dec 2023 13:52:54 +0200 Subject: [PATCH] Fixed pylinter issue --- .github/workflows/pylint.yml | 2 +- app/features/readers/reader_routers.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 882fa2a..645daa2 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -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 diff --git a/app/features/readers/reader_routers.py b/app/features/readers/reader_routers.py index a0f6a9c..2e861c4 100644 --- a/app/features/readers/reader_routers.py +++ b/app/features/readers/reader_routers.py @@ -20,10 +20,9 @@ def accesses(device_id): @reader_blue_print.route("//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"]: