From d27d60f283bc8dc6ac04ec002d9e450f872b6577 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 7 Dec 2021 19:59:35 +0100 Subject: [PATCH 1/2] partner_batch_imports.py: Readability --- scripts/partner_batch_imports.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/partner_batch_imports.py b/scripts/partner_batch_imports.py index 3bf22cbf730..d42c68593de 100755 --- a/scripts/partner_batch_imports.py +++ b/scripts/partner_batch_imports.py @@ -55,7 +55,11 @@ class Biblio: ] REQUIRED_FIELDS = requests.get(SCHEMA_URL).json()['required'] - NONBOOK = ['A2', 'AA', 'AB', 'AJ', 'AVI', 'AZ', 'BK', 'BM', 'C3', 'CD', 'CE', 'CF', 'CR', 'CRM', 'CRW', 'CX', 'D3', 'DA', 'DD', 'DF', 'DI', 'DL', 'DO', 'DR', 'DRM', 'DRW', 'DS', 'DV', 'EC', 'FC', 'FI', 'FM', 'FR', 'FZ', 'GB', 'GC', 'GM', 'GR', 'H3', 'H5', 'L3', 'L5', 'LP', 'MAC', 'MC', 'MF', 'MG', 'MH', 'ML', 'MS', 'MSX', 'MZ', 'N64', 'NGA', 'NGB', 'NGC', 'NGE', 'NT', 'OR', 'OS', 'PC', 'PP', 'PRP', 'PS', 'PSC', 'PY', 'QU', 'RE', 'RV', 'SA', 'SD', 'SG', 'SH', 'SK', 'SL', 'SMD', 'SN', 'SO', 'SO1', 'SO2', 'SR', 'SU', 'TA', 'TB', 'TR', 'TS', 'TY', 'UX', 'V35', 'V8', 'VC', 'VD', 'VE', 'VF', 'VK', 'VM', 'VN', 'VO', 'VP', 'VS', 'VU', 'VY', 'VZ', 'WA', 'WC', 'WI', 'WL', 'WM', 'WP', 'WT', 'WX', 'XL', 'XZ', 'ZF', 'ZZ'] + NONBOOK = """A2 AA AB AJ AVI AZ BK BM C3 CD CE CF CR CRM CRW CX D3 DA DD DF DI DL DO DR + DRM DRW DS DV EC FC FI FM FR FZ GB GC GM GR H3 H5 L3 L5 LP MAC MC MF MG MH ML MS MSX MZ + N64 NGA NGB NGC NGE NT OR OS PC PP PRP PS PSC PY QU RE RV SA SD SG SH SK SL SMD SN SO SO1 + SO2 SR SU TA TB TR TS TY UX V35 V8 VC VD VE VF VK VM VN VO VP VS VU VY VZ WA WC WI WL WM + WP WT WX XL XZ ZF ZZ""".split() def __init__(self, data): self.isbn = data[124] From a7bdef656aa8709d9f7e165eb84d97b944306745 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 8 Dec 2021 06:30:21 +0100 Subject: [PATCH 2/2] Fix trailing whitespace --- scripts/partner_batch_imports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/partner_batch_imports.py b/scripts/partner_batch_imports.py index d42c68593de..d251afc97f6 100755 --- a/scripts/partner_batch_imports.py +++ b/scripts/partner_batch_imports.py @@ -55,8 +55,8 @@ class Biblio: ] REQUIRED_FIELDS = requests.get(SCHEMA_URL).json()['required'] - NONBOOK = """A2 AA AB AJ AVI AZ BK BM C3 CD CE CF CR CRM CRW CX D3 DA DD DF DI DL DO DR - DRM DRW DS DV EC FC FI FM FR FZ GB GC GM GR H3 H5 L3 L5 LP MAC MC MF MG MH ML MS MSX MZ + NONBOOK = """A2 AA AB AJ AVI AZ BK BM C3 CD CE CF CR CRM CRW CX D3 DA DD DF DI DL DO DR + DRM DRW DS DV EC FC FI FM FR FZ GB GC GM GR H3 H5 L3 L5 LP MAC MC MF MG MH ML MS MSX MZ N64 NGA NGB NGC NGE NT OR OS PC PP PRP PS PSC PY QU RE RV SA SD SG SH SK SL SMD SN SO SO1 SO2 SR SU TA TB TR TS TY UX V35 V8 VC VD VE VF VK VM VN VO VP VS VU VY VZ WA WC WI WL WM WP WT WX XL XZ ZF ZZ""".split()