for prefix in ['en', 'dis']:
blers = {}
for cond_id in conds_present:
- blers[str(cond_id)] = self.as_ids(
+ blers[cond_id] = self.as_ids(
[t for t in todos if cond_id in t[f'{prefix}ables']])
self._fields[f'{prefix}ablers_for'] = blers
self._fields['processes'] = self.as_ids(self.lib_all('Process'))
self._forced[field_name] = value
@staticmethod
- def as_ids(items: list[dict[str, Any]]) -> list[int] | list[str]:
+ def as_ids(items: list[dict[str, Any]]) -> list[int]:
"""Return list of only 'id' fields of items."""
return [item['id'] for item in items]