Change data structure for meteo adding AggregateKey and AggregateValue

This commit is contained in:
Guntis Smaukstelis
2023-04-26 16:37:11 +03:00
parent 3cd223dddd
commit 1bf41973a7
7 changed files with 161 additions and 62 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
package server
import parse.{AggregateMeteo, Meteo}
import parse.AggregateKey
import java.time.{LocalDate, LocalDateTime}
import java.time.format.DateTimeFormatter
@@ -36,8 +36,8 @@ object ValidateRoutes {
}
object Aggregate {
def unapply(str: String): Option[AggregateMeteo] = {
Meteo.stringToAggregateParam(str)
def unapply(str: String): Option[AggregateKey] = {
AggregateKey.stringToAggregateParam(str)
}
}
}