Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partner_batch_imports.py: Readability #5943

Merged
merged 2 commits into from
Dec 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/partner_batch_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
cclauss marked this conversation as resolved.
Show resolved Hide resolved

def __init__(self, data):
self.isbn = data[124]
Expand Down