Untitled
unknown
plain_text
2 years ago
724 B
5
Indexable
for category_id, objs_actions in category_cities_changes.items():
has_delete = list(map(lambda obj_action: obj_action[1] == ActionType.NEED_DELETE, objs_actions))
inconsistency_presence = (any(has_delete) or len(objs_actions) < len(org_ids)) and any(
not obj for obj in has_delete
)
inconsistency_data = False
if inconsistency_presence or inconsistency_data:
print("never")
category_cities_result_changes[city_id][category_id] = (None, ActionType.NEED_DELETE)
else:
category_cities_result_changes[city_id][category_id] = objs_actions[0]Editor is loading...
Leave a Comment