mirror of
https://github.com/sensebox/opensensmapr
synced 2025-02-22 14:53:57 +01:00
change format for empty responses of archive measurements
This commit is contained in:
parent
36f4701557
commit
438eda09cd
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ archive_fetch_measurements = function (box, sensorId, fromDate, toDate, progress
|
|||
))
|
||||
|
||||
if (httr::status_code(res) == 404)
|
||||
return(data.frame(createdAt = character(), value = character()))
|
||||
return(data.frame(createdAt = as.POSIXlt(x = integer(0), origin = date), value = double()))
|
||||
}
|
||||
|
||||
measurements = httr::content(res, type = 'text', encoding = 'UTF-8') %>%
|
||||
|
|
Loading…
Add table
Reference in a new issue