is_done = len(self._form_data.get_all_str('done')) > 0
calendarize = len(self._form_data.get_all_str('calendarize')) > 0
comment = self._form_data.get_str('comment', ignore_strict=True)
- for v in step_fillers:
+ for filler in step_fillers:
target_id: int
- to_int = v
+ to_int = filler
for prefix in [p for p in ['make_empty_', 'make_full_']
- if v.startswith(p)]:
- to_int = v[len(prefix):]
+ if filler.startswith(p)]:
+ to_int = filler[len(prefix):]
try:
target_id = int(to_int)
except ValueError as e:
- msg = 'bad fill_for target: {v}'
+ msg = 'bad fill_for target: {filler}'
raise BadFormatException(msg) from e
- if v.startswith('make_empty_'):
+ if filler.startswith('make_empty_'):
processes_to_make_empty += [target_id]
- elif v.startswith('make_full_'):
+ elif filler.startswith('make_full_'):
processes_to_make_full += [target_id]
- elif v != 'ignore':
+ elif filler != 'ignore':
adopted_child_ids += [target_id]
to_remove = []
for child in todo.children: