Fix parsing db url, remove 24h state, add db saving

This commit is contained in:
Guntis Smaukstelis
2023-12-10 20:37:53 +02:00
parent f956d658d5
commit 8f2ade2fcf
5 changed files with 51 additions and 41 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import server.Server
object Main extends IOApp {
def run(args: List[String]): IO[ExitCode] = {
// postgres://weather_tool:XID547uldXliJBa@weather-tool-db.flycast:5432/weather_tool?sslmode=disable
// println(System.getenv("DATABASE_URL"))
// println(System.getenv("DATABASE_URL"))
for {
transactor <- DBConnection.transactor[IO]