Skip to content

Commit

Permalink
Update Bank Registry DE script to sort bank codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Natim committed Apr 30, 2024
1 parent 4bfbf3b commit 5b34bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get_bank_registry_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def parse(raw):
def process(records):
fieldnames = ("bank_code", "name", "short_name", "bic")
registry = []
for record in records:
for record in sorted(records, key=lambda item: item["bank_code"]):
if not record["bank_code"]:
continue

Expand Down

0 comments on commit 5b34bb5

Please sign in to comment.