mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
linting...
This commit is contained in:
parent
fe575eb31b
commit
381da4c98a
3 changed files with 13 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue