mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 07:10:09 +01:00
commit
This commit is contained in:
parent
3c68430336
commit
2e3977e59c
2
.github/workflows/pylint.yml
vendored
2
.github/workflows/pylint.yml
vendored
@ -21,4 +21,4 @@ jobs:
|
|||||||
pip install pylint
|
pip install pylint
|
||||||
- name: Analysing the code with pylint
|
- name: Analysing the code with pylint
|
||||||
run: |
|
run: |
|
||||||
pylint $(find src -name "*.py" | xargs)
|
pylint $(find src -name "*.py" | xargs) --disable=line-too-long
|
||||||
|
@ -224,10 +224,10 @@ def get_latest_handshake(config_name):
|
|||||||
status = "stopped"
|
status = "stopped"
|
||||||
if int(data_usage[count + 1]) > 0:
|
if int(data_usage[count + 1]) > 0:
|
||||||
g.cur.execute("UPDATE %s SET latest_handshake = '%s', status = '%s' WHERE id='%s'"
|
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:
|
else:
|
||||||
g.cur.execute("UPDATE %s SET latest_handshake = '(None)', status = '%s' WHERE id='%s'"
|
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
|
count += 2
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user