correct typo, remove 'whatTable'

This commit is contained in:
rxf
2023-06-28 11:27:14 +02:00
parent 6857d75e9d
commit 6485ef63f6
3 changed files with 16 additions and 17 deletions
+2 -9
View File
@@ -80,7 +80,7 @@ export const getgeigerData = async (params, possibles, props) => {
opts.span = setoptionfromtable(opts.span, 1)
opts.daystart = setoptionfromtable(opts.daystart, false)
opts.avg = setoptionfromtable(opts.avg, 1)
opts.mooving = setoptionfromtable(opts.mooving, false)
opts.moving = setoptionfromtable(opts.moving, false)
let {start, stop} = calcRange(opts) // calc time range
opts.start = start
opts.stop = stop
@@ -95,7 +95,7 @@ export const getgeigerData = async (params, possibles, props) => {
data: opts.data,
count: erg.values.length,
avg: opts.avg,
mooving: opts.mooving
moving: opts.moving
},
values: erg.values,
}
@@ -150,10 +150,3 @@ export const getgeigerData = async (params, possibles, props) => {
return erg
}
*/
const whatTable = [
{'what':'day', 'span': 1, 'daystart': false, 'mooving': true, 'avg': 1},
{'what':'week', 'span': 7, 'daystart': false, 'mooving': true, 'avg': 180},
{'what':'month', 'span': 31, 'daystart': true, 'mooving': false, 'avg': 1440},
];