|
@ -39,8 +39,8 @@ function insertFloodZone({ images, description, passable, location, date, time, |
|
|
transaction(global.userDataBase, query, values); |
|
|
transaction(global.userDataBase, query, values); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function insertPluviometerData({ pluviometer, images, dateTime, time, location, address }) { |
|
|
|
|
|
const query = `INSERT INTO Pluviometer(Date, Images, Latitude, Longitude, Precipitation, Address) VALUES(?, ?, ?, ?, ?, ?);`; |
|
|
|
|
|
|
|
|
function insertPluviometerData({ pluviometer, description, images, dateTime, time, location, address }) { |
|
|
|
|
|
const query = `INSERT INTO Pluviometer(Date, Images, Latitude, Longitude, Precipitation, Address, Description) VALUES(?, ?, ?, ?, ?, ?, ?);`; |
|
|
|
|
|
|
|
|
if (location === undefined) { |
|
|
if (location === undefined) { |
|
|
console.debug("undefined location"); |
|
|
console.debug("undefined location"); |
|
@ -54,6 +54,7 @@ function insertPluviometerData({ pluviometer, images, dateTime, time, location, |
|
|
parseFloat(location["longitude"]), |
|
|
parseFloat(location["longitude"]), |
|
|
parseFloat(pluviometer), |
|
|
parseFloat(pluviometer), |
|
|
address, |
|
|
address, |
|
|
|
|
|
description, |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
transaction(global.userDataBase, query, values); |
|
|
transaction(global.userDataBase, query, values); |
|
|