Return of list of time double list instead of just doubles

This commit is contained in:
Guntis Smaukstelis
2023-05-20 19:19:38 +03:00
parent 54cedb2818
commit 9241277b7f
3 changed files with 12 additions and 12 deletions
+3 -4
View File
@@ -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 ()
}