Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Dec 4, 2024
1 parent fb31ed9 commit 2a7c7ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chellow/e/hh_parser_df2.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ def __next__(self):
raise BadRequest("Problem parsing the value: " + fields[2])
status = fields[3][-1]

mpan_core = self.core
if self.core in self.mpan_map:
mapping = self.mpan_map[self.core]
if mapping["from"] <= start_date <= mapping["to"]:
self.core = mapping["mpan"]
mpan_core = mapping["mpan"]

if self.core is None:
if mpan_core is None:
msg = f"The MPAN core {self.core} has been ignored"
if len(self.messages) == 0 or self.messages[-1] != msg:
self.messages.append(
Expand Down

0 comments on commit 2a7c7ec

Please sign in to comment.