linting...

This commit is contained in:
DJ2LS 2023-10-22 12:17:58 +02:00
parent fe575eb31b
commit 381da4c98a
3 changed files with 13 additions and 9 deletions

View file

@ -867,23 +867,23 @@ function prepareStatsDataForStore(data) {
var speed_list_bpm = [];
for (var i = 0; i < speed_listSize; i++) {
for (let i = 0; i < speed_listSize; i++) {
speed_list_bpm.push(data[i].bpm);
}
var speed_list_timestamp = [];
for (var i = 0; i < speed_listSize; i++) {
var timestamp = data[i].timestamp * 1000;
var h = new Date(timestamp).getHours();
var m = new Date(timestamp).getMinutes();
var s = new Date(timestamp).getSeconds();
var time = h + ":" + m + ":" + s;
for (let i = 0; i < speed_listSize; i++) {
let timestamp = data[i].timestamp * 1000;
let h = new Date(timestamp).getHours();
let m = new Date(timestamp).getMinutes();
let s = new Date(timestamp).getSeconds();
let time = h + ":" + m + ":" + s;
speed_list_timestamp.push(time);
}
var speed_list_snr = [];
for (var i = 0; i < speed_listSize; i++) {
for (let i = 0; i < speed_listSize; i++) {
let snr = NaN;
if (data[i].snr !== 0) {
snr = data[i].snr;

View file

@ -23,7 +23,6 @@ import data_handler
import helpers
import modem
import sock
import static
from global_instances import ARQ, AudioParam, Beacon, Channel, Daemon, HamlibParam, ModemParam, Station, Statistics, TCIParam, Modem
IRS_original_arq_cleanup: Callable
@ -53,6 +52,8 @@ def irs_arq_cleanup():
def t_arq_irs(*args):
# not sure why importing at top level isn't working
import modem
# pylint: disable=global-statement
global IRS_original_arq_cleanup, MESSAGE

View file

@ -54,6 +54,9 @@ def iss_arq_cleanup():
def t_arq_iss(*args):
# not sure why importing at top level isn't working
import modem
# pylint: disable=global-statement
global ISS_original_arq_cleanup, MESSAGE