Make GMBA narrow boolean field

This commit is contained in:
PCoder 2022-01-13 10:07:06 +05:30
commit 1c78f6d8e3
3 changed files with 5 additions and 2 deletions

View file

@ -455,6 +455,9 @@ def handle_object_dict(object_dict, model_name, debug=False):
for i in ['select_300']:
if i in object_dict:
object_dict[i] = True if object_dict[i].lower().strip() == 'x' else False
for i in ['gmba_narrow']:
if i in object_dict:
object_dict[i] = True if object_dict[i].lower().strip() == 'x' else False
# area field can't be empty
if 'area' in object_dict:
if object_dict['area'] == '':