summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-11-14 21:37:47 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-11-14 21:37:47 +0100
commit6a90ffc168c89572905930b4572821b3b00555d1 (patch)
tree58ecbfe5b6979c178ab9b10153cc210bc780f3e4
parentne delaj 200 requestov, če je zadnji mlajši od 1 ure (diff)
downloadbiblos-stat-6a90ffc168c89572905930b4572821b3b00555d1.tar
biblos-stat-6a90ffc168c89572905930b4572821b3b00555d1.tar.gz
biblos-stat-6a90ffc168c89572905930b4572821b3b00555d1.tar.bz2
biblos-stat-6a90ffc168c89572905930b4572821b3b00555d1.tar.lz
biblos-stat-6a90ffc168c89572905930b4572821b3b00555d1.tar.xz
biblos-stat-6a90ffc168c89572905930b4572821b3b00555d1.tar.zst
biblos-stat-6a90ffc168c89572905930b4572821b3b00555d1.zip
-rwxr-xr-xgather.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gather.py b/gather.py
index 64146b2..c213d70 100755
--- a/gather.py
+++ b/gather.py
@@ -179,7 +179,7 @@ def update(hmfan2iarts=100):
session.add(borrow)
session.commit()
valid_acsms += 1
- logger.info(f"In this update, {r['valid_acsms']} valid acsms were stored, {r['only_isbn_acsms']} acsms had only isbn and no other data available and {r['failed_acsms']} acsms failed to be received with response code 200 and {r['failed_acsms_not200']} acsms failed to be received but did not return 200. Last valid requested acsm was {r['acsm_id']}. Thank you for cooperation.")
+ logger.info(f"In this update, {valid_acsms} valid acsms were stored, {only_isbn_acsms} acsms had only isbn and no other data available and {failed_acsms} acsms failed to be received with response code 200 and {failed_acsms_not200} acsms failed to be received but did not return 200. Last valid requested acsm was {acsm_id}. Thank you for cooperation.")
return {"valid_acsms": valid_acsms, "only_isbn_acsms": only_isbn_acsms, "failed_acsms": failed_acsms, "failed_acsms_not200": failed_acsms_not200, "acsm_id": acsm_id}
try:
r = update()