display lifetime stats in report
This commit is contained in:
parent
1ec9e93f16
commit
3738088dde
|
@ -1,5 +1,8 @@
|
||||||
# Changelog for mtlstats
|
# Changelog for mtlstats
|
||||||
|
|
||||||
|
## current
|
||||||
|
- Bugfix: Display lifetime stats ib report, not YTD
|
||||||
|
|
||||||
## 0.8.0
|
## 0.8.0
|
||||||
- Bugfix: removed quotation marks from goalie names in report
|
- Bugfix: removed quotation marks from goalie names in report
|
||||||
- Allow lower case player names
|
- Allow lower case player names
|
||||||
|
|
|
@ -151,10 +151,10 @@ lifetimeStatsReport :: Int -> ProgState -> [String]
|
||||||
lifetimeStatsReport width s = let
|
lifetimeStatsReport width s = let
|
||||||
db = s^.database
|
db = s^.database
|
||||||
|
|
||||||
playerStats = map (\p -> (p, p^.pYtd))
|
playerStats = map (\p -> (p, p^.pLifetime))
|
||||||
$ db^.dbPlayers
|
$ db^.dbPlayers
|
||||||
|
|
||||||
goalieStats = map (\g -> (g, g^.gYtd))
|
goalieStats = map (\g -> (g, g^.gLifetime))
|
||||||
$ db^.dbGoalies
|
$ db^.dbGoalies
|
||||||
|
|
||||||
in playerReport width "LIFETIME" playerStats
|
in playerReport width "LIFETIME" playerStats
|
||||||
|
|
Loading…
Reference in New Issue
Block a user