Einheit mit in die Datenbank
This commit is contained in:
@@ -10,6 +10,9 @@ document.addEventListener('DOMContentLoaded', async function () {
|
||||
|
||||
let ret = await getData()
|
||||
let schema = ret.data
|
||||
if(curEinheit === 0) {
|
||||
curEinheit = schema.einheit
|
||||
}
|
||||
fillSchema(schema)
|
||||
|
||||
document.querySelector('#sptab').addEventListener('click', markField);
|
||||
@@ -122,7 +125,7 @@ document.addEventListener('DOMContentLoaded', async function () {
|
||||
}
|
||||
setArray.push(elem)
|
||||
}
|
||||
let schema = {curdate: startdate, months: monthArray, years: yearsArray, data: setArray}
|
||||
let schema = {curdate: startdate, months: monthArray, years: yearsArray, data: setArray, einheit: curEinheit}
|
||||
await storeData(schema)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user