Put in support for old Progressive item key

I will probably regret this.
This commit is contained in:
Fabian Dill
2021-08-09 10:05:45 +02:00
parent d3e71ecb9b
commit 50ad661796
3 changed files with 5 additions and 3 deletions

View File

@@ -108,9 +108,10 @@ class Progressive(Choice):
alias_false = 0
alias_true = 2
default = 2
alias_random = 1
def want_progressives(self, random):
return random.choice([True, False]) if self.value == self.option_grouped_random else int(self.value)
return random.choice([True, False]) if self.value == self.option_grouped_random else bool(self.value)
class RecipeIngredients(Choice):