Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed May 10, 2024
1 parent 1484854 commit 7e99f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsys_airflow/plugins/data_exports/marc/gobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def generate_list(self, marc_file) -> pathlib.Path:
isbn = isbn.replace("-", "")
isbn = re.sub("\s.*", "", isbn)
if not re.search(
r"^(?=(?:\d){9}[\dX](?:(?:\D*\d){3})?$)(?:[\dX]{10}|\d{13})$", isbn
r"^(?=(?:\d){9}[\dX](?:(?:\D*\d){3})?$)(?:[\dX]{10}|\d{13})$",
isbn,
):
break

Expand Down Expand Up @@ -96,7 +97,6 @@ def generate_list(self, marc_file) -> pathlib.Path:
if len(items_result['items']):
print_list.append(isbn)


with gobi_path.open("w+") as (fo):
for p_isbn in print_list:
fo.write(f"{p_isbn}|print|325099\n")
Expand Down

0 comments on commit 7e99f2a

Please sign in to comment.