Skip to content

Commit

Permalink
Remove two magic numbers (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlogand authored Oct 13, 2023
1 parent eae62a2 commit 4ed7911
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/rorapp/functions/draw_mortality_chits.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ def draw_mortality_chits(chits_to_draw=1):
'''

# Build a bag of chits
codes = list(range(1, 31))
lowest_code = 1
highest_code = 30
codes = list(range(lowest_code, highest_code + 1))
chits = list(map(lambda code: str(code), codes))
other_chits = ["none", "none", "none", "none", "draw 2", "draw 2"]
chits = chits + other_chits
Expand Down

0 comments on commit 4ed7911

Please sign in to comment.