use floats; explicit conversion
This commit is contained in:
parent
5cd9d386a6
commit
d8b3974728
@ -353,7 +353,7 @@ class WaterfallLevelsInput(Input):
|
|||||||
<div class="col row">
|
<div class="col row">
|
||||||
<label class="col-3 col-form-label col-form-label-sm" for="{id}-{name}">{label}</label>
|
<label class="col-3 col-form-label col-form-label-sm" for="{id}-{name}">{label}</label>
|
||||||
<div class="col-9 input-group input-group-sm">
|
<div class="col-9 input-group input-group-sm">
|
||||||
<input type="number" class="{classes}" name="{id}-{name}" value="{value}" {disabled}>
|
<input type="number" step="any" class="{classes}" name="{id}-{name}" value="{value}" {disabled}>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text">dBFS</span>
|
<span class="input-group-text">dBFS</span>
|
||||||
</div>
|
</div>
|
||||||
@ -375,7 +375,7 @@ class WaterfallLevelsInput(Input):
|
|||||||
def getValue(name):
|
def getValue(name):
|
||||||
key = "{}-{}".format(self.id, name)
|
key = "{}-{}".format(self.id, name)
|
||||||
if key in data:
|
if key in data:
|
||||||
return {name: data[key][0]}
|
return {name: float(data[key][0])}
|
||||||
raise KeyError("waterfall key not found")
|
raise KeyError("waterfall key not found")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user