From 6a90ffc168c89572905930b4572821b3b00555d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 14 Nov 2022 21:37:47 +0100 Subject: fixed scoping --- gather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3