From cbdfbd51e31a07ee8e4c37b32a141c85d4b32384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 8 Nov 2022 11:12:40 +0100 Subject: sometimes, wrong isbns are entered on the server 1170903 --- gather.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gather.py b/gather.py index 795c409..5950363 100755 --- a/gather.py +++ b/gather.py @@ -24,7 +24,7 @@ Base = declarative_base() class Book(Base): __tablename__ = "books" - isbn = Column(BigInteger, primary_key=True, nullable=False, doc="book isbn. found in URL http://www/isbn/987 and in acsm: resource, dc:identifier (sometimes not), thumbnailURL") + isbn = Column(BigInteger, primary_key=True, nullable=False, doc="book isbn. found in URL http://www/isbn/978 and in acsm: resource, dc:identifier (sometimes not), thumbnailURL") title = Column(String, nullable=True, doc="title of the book, dcc:title in acsm") creator = Column(String, nullable=True, doc="author of the book, dc:creator in acsm") publisher = Column(String, nullable=True, doc="publisher of the book, dc:publisher in acsm") @@ -98,8 +98,8 @@ try: elif r.text.startswith("Napaka pri prenosu"): logger.warning(f"'napaka pri prenosu' received from http for acsm id {acsm_id}, skipping") force_acsm_id = acsm_id+1 - elif r.text.startswith('