Changed data structure for weather params and aggregating

This commit is contained in:
Guntis Smaukstelis
2023-05-03 00:02:59 +03:00
parent 7e3d58bec0
commit 9fbc6f9f37
8 changed files with 194 additions and 306 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
package server
import parse.AggregateKey
import parse.Aggregate.AggregateKey
import java.time.{LocalDate, LocalDateTime}
import java.time.format.DateTimeFormatter
@@ -35,9 +35,9 @@ object ValidateRoutes {
}
}
object Aggregate {
object AggKey {
def unapply(str: String): Option[AggregateKey] = {
AggregateKey.stringToAggregateParam(str)
AggregateKey.fromString(str)
}
}
}