This commit is contained in:
Donald Cheng Hong Zou 2022-01-19 09:18:03 -05:00
parent 3c68430336
commit 2e3977e59c
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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