1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

fix no_wake_up_before_first_use to allow None

This commit is contained in:
Kelly Brazil
2022-06-03 10:35:49 -07:00
parent 437fa62cb1
commit 1d6bc40bff

View File

@ -77,6 +77,8 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
for item in proc_data:
if item['wake_up_time'].endswith('?'):
item['no_wake_up_before_first_use'] = True
elif item['wake_up_time'] == '-':
item['no_wake_up_before_first_use'] = None
else:
item['no_wake_up_before_first_use'] = False