implemented resetYtd

This commit is contained in:
Jonathan Lamothe committed 2019-08-21 15:57:52 -04:00
1 parent 943efe0599
commit 51e591861d
3 files changed
+89 -3

No files matched your search

+4 -2
View File
@@ -25,7 +25,7 @@ module Mtlstats.Actions
, startNewGame
) where
import Lens.Micro ((.~))
import Lens.Micro ((.~), (%~))
import Mtlstats.Types
@@ -35,7 +35,9 @@ startNewSeason = (progMode .~ NewSeason) . (database . dbGames .~ 0)
-- | Resets all players year-to-date stats
resetYtd :: ProgState -> ProgState
resetYtd = undefined
resetYtd
= (database . dbPlayers %~ map (pYtd .~ newPlayerStats))
. (database . dbGoalies %~ map (gYtd .~ newGoalieStats))
-- | Starts a new game
startNewGame :: ProgState -> ProgState