Skip to content

Commit

Permalink
Update hockey\constant.py
Browse files Browse the repository at this point in the history
Add descriptions for all positions, correct previous position shift for forwards.
  • Loading branch information
samthom1 authored Nov 21, 2023
1 parent 96b4e31 commit 3922a29
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions espn_api/hockey/constant.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
#Constants
POSITION_MAP = {
# Remaining: F, IR, Util
0 : '0' # IR?
, 1 : 'Center'
, 2 : 'Left Wing'
, 3 : 'Right Wing'
0 : 'Center'
, 1 : 'Left Wing'
, 2 : 'Right Wing'
, 3 : 'Forward'
, 4 : 'Defense'
, 5 : 'Goalie'
, 6 : '6' # Forward ?
, 7 : '7' # Goalie, F (Goalie Bench?)
, 8 : '8' # Goalie, F
, 'Center': 1
, 'Left Wing' : 2
, 'Right Wing' : 3
, 6 : 'Util'
, 7 : 'Bench'
, 8 : 'IR'
, 'Center': 0
, 'Left Wing' : 1
, 'Right Wing' : 2
, 'Forward' : 3
, 'Defense' : 4
, 'Goalie' : 5
, 'Util' : 6
, 'Bench' : 7
, 'IR' : 8
}

STATS_IDENTIFIER = {
Expand Down

0 comments on commit 3922a29

Please sign in to comment.