Bugfix
This commit is contained in:
parent
7f5ed98386
commit
4196581a95
@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<div class="card mb-3 shadow">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<span>Vitals</span>
|
||||
<span>Data</span>
|
||||
<DateRangePicker range="1M" direction="-1" v-model:date="vitals_date" v-model:date_end="vitals_date_begin" />
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
@ -134,7 +134,7 @@ export function measurement_parse(data) {
|
||||
res.datetime = new Date(row.substring(idx + 1, idx = row.indexOf(' ', idx)));
|
||||
res.name = row.substring(idx + 3, idx = row.indexOf(': ', idx));
|
||||
value = row.substring(idx + 4, idx = row.indexOf(' _', idx));
|
||||
res.user = row.substring(idx + 3);
|
||||
res.user = row.substring(idx + 2);
|
||||
m = value.match(/^(?:(.*?)(?: (\S+))?)(\*)?(?: \((?:(.*?)(?: (\S+))?)\))?\s*$/);
|
||||
res.value = m[4] ? m[4] : m[1];
|
||||
res.unit = m[4] ? m[5] : m[2];
|
||||
|
Loading…
Reference in New Issue
Block a user