From 1450a21d0002faa39f3c07228139113c9a7b36ed Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Mon, 7 Sep 2020 18:27:43 +0200 Subject: [PATCH] Fix links to amazon (#1461) --- cps/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/db.py b/cps/db.py index fb1d5c57..c3d62a22 100644 --- a/cps/db.py +++ b/cps/db.py @@ -125,9 +125,9 @@ class Identifiers(Base): def __repr__(self): format_type = self.type.lower() if format_type == "amazon" or format_type == "asin": - return u"https://amzn.com/{0}".format(self.val) + return u"https://amazon.com/dp/{0}".format(self.val) elif format_type.startswith('amazon_'): - return u"https://amazon.{0}/{1}".format(format_type[7:], self.val) + return u"https://amazon.{0}/dp/{1}".format(format_type[7:], self.val) elif format_type == "isbn": return u"https://www.worldcat.org/isbn/{0}".format(self.val) elif format_type == "doi":