irt-service/app/helpers/common_helper.py

6 lines
98 B
Python

def boolean_to_int(value: bool) -> int:
if value:
return 1
else:
return 0