diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-11-07 22:39:56 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-11-07 22:58:12 +0100 |
commit | 9bfe06a8509e77c0a8014032f220a853da90eab8 (patch) | |
tree | 163a99bc04970b721822f7ff67af3e956d890073 | |
parent | limit 1 on borrow query to prevent copying all borrows to python from db (diff) | |
download | biblos-stat-9bfe06a8509e77c0a8014032f220a853da90eab8.tar biblos-stat-9bfe06a8509e77c0a8014032f220a853da90eab8.tar.gz biblos-stat-9bfe06a8509e77c0a8014032f220a853da90eab8.tar.bz2 biblos-stat-9bfe06a8509e77c0a8014032f220a853da90eab8.tar.lz biblos-stat-9bfe06a8509e77c0a8014032f220a853da90eab8.tar.xz biblos-stat-9bfe06a8509e77c0a8014032f220a853da90eab8.tar.zst biblos-stat-9bfe06a8509e77c0a8014032f220a853da90eab8.zip |
-rwxr-xr-x | gather.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -104,6 +104,9 @@ try: elif r.text.startswith('<error xmlns="http://ns.adobe.com/adept" data="E_URLLINK_PARAMETER_SYNTAX rights lrt http://cs.alliance.inkbook.eu:443/fulfillment/URLLink.acsm"/>'): logger.warning(f"received urllink parameter syntax error with no usable data for acsm {acsm_id}, so I did not store anything") force_acsm_id = acsm_id+1 + if acsm_id >= 199999: + logger.warning(f"on 2022-11-07, library removed access for acsms 200000-999999. skipping to 1000000") + force_acsm_id = 1000000 failed_acsms += 1 else: try: |