diff --git a/parse.py b/parse.py index a5c4571..1892726 100644 --- a/parse.py +++ b/parse.py @@ -56,6 +56,8 @@ def parse(filename: Union[str, Path]) -> Tuple[ quest_answers = {id_: {} for id_ in questions} for order in data['orders']: + if order['status'] == 'c': # skip cancelled orders + continue for position in order['positions']: item_id = position['item'] count_items[item_id] += 1