convert boolean to int to satisfy solver requirements
This commit is contained in:
5
app/helpers/common_helper.py
Normal file
5
app/helpers/common_helper.py
Normal file
@ -0,0 +1,5 @@
|
||||
def boolean_to_int(value: bool) -> int:
|
||||
if value:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
Reference in New Issue
Block a user