Skip to content

Commit

Permalink
Fix flake issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Oct 9, 2022
1 parent 7449175 commit d194009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/spellbook/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def _count_up(combo: Combo, recursion_counter: int = 0) -> int:
if recursion_counter > RECURSION_LIMIT:
return recursion_counter
return max((_count_up(c, recursion_counter + 1) for feature in combo.needs.all() for c in feature.produced_by_combos.all()), default=0)

def _count_down(combo: Combo, recursion_counter: int = 0) -> int:
if recursion_counter > RECURSION_LIMIT:
return recursion_counter
Expand Down

0 comments on commit d194009

Please sign in to comment.