Return of list of time double list instead of just doubles
This commit is contained in:
@@ -14,15 +14,14 @@ object Main {
|
||||
println("================ start parser")
|
||||
|
||||
val formatter = DateTimeFormatter.ofPattern("yyyyMMdd_HHmm")
|
||||
val from = LocalDateTime.parse("20230414_2200", formatter)
|
||||
val to = LocalDateTime.parse("20230501_1230", formatter)
|
||||
val userQuery = UserQuery(List("Liepāja", "Rēzekne", "randomstr"), "tempMax", AggregateKey.Max)
|
||||
val from = LocalDateTime.parse("20230512_2200", formatter)
|
||||
val to = LocalDateTime.parse("20230514_1230", formatter)
|
||||
val userQuery = UserQuery(List("Rīga"), "tempAvg", AggregateKey.List)
|
||||
|
||||
for {
|
||||
lines <- db.DBService.getInRange(from, to)
|
||||
parsed <- IO.pure(Parser.queryData(userQuery, lines))
|
||||
_ <- IO.println(parsed.asJson)
|
||||
_ <- IO.println(None.asJson)
|
||||
} yield ()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user