From 2e3977e59cd30d7e3528b903b89ce2fdb979b3b5 Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Wed, 19 Jan 2022 09:18:03 -0500 Subject: [PATCH] commit --- .github/workflows/pylint.yml | 2 +- src/dashboard.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c9feab7..79f38ed 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -21,4 +21,4 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(find src -name "*.py" | xargs) + pylint $(find src -name "*.py" | xargs) --disable=line-too-long diff --git a/src/dashboard.py b/src/dashboard.py index 1e4dbdb..8c5861d 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -224,10 +224,10 @@ def get_latest_handshake(config_name): status = "stopped" if int(data_usage[count + 1]) > 0: g.cur.execute("UPDATE %s SET latest_handshake = '%s', status = '%s' WHERE id='%s'" - % (config_name, str(minus).split(".", maxsplit=1)[0], status, data_usage[count])) + % (config_name, str(minus).split(".", maxsplit=1)[0], status, data_usage[count])) else: g.cur.execute("UPDATE %s SET latest_handshake = '(None)', status = '%s' WHERE id='%s'" - % (config_name, status, data_usage[count])) + % (config_name, status, data_usage[count])) count += 2