Skip to content

Commit

Permalink
Fix difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Mar 22, 2024
1 parent 71d8dd3 commit ec326da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool/difficulty_adjustment.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_new_difficulty(
number_of_partials_target = int(number_of_partials_target * 0.75)
elif custom_difficulty == 'HIGHEST':
number_of_partials_target = int(number_of_partials_target * 0.5)
elif custom_difficulty.startswith('CUSTOM:'):
elif custom_difficulty is not None and custom_difficulty.startswith('CUSTOM:'):
# Number of partials per day
number_of_partials_target = int(custom_difficulty[7:])
elif custom_difficulty:
Expand Down

0 comments on commit ec326da

Please sign in to comment.