store number of games in database

This commit is contained in:
Jonathan Lamothe committed 2019-08-19 09:31:24 -04:00
1 parent d491a30ea7
commit baadb5ae54
2 files changed
+15 -6

No files matched your search

+2
View File
@@ -97,6 +97,7 @@ db :: Database
db = newDatabase
& dbPlayers .~ [player]
& dbGoalies .~ [goalie]
& dbGames .~ 1
playerJSON :: ByteString
playerJSON = [r|
@@ -145,4 +146,5 @@ dbJSON = [r|
[ |] <> playerJSON <> [r| ]
, "goalies":
[ |] <> goalieJSON <> [r| ]
, "games": 1
}|]