From b48afa38acfbfa95c2cf66502bf65d9e730c4cc5 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 12 May 2020 14:44:57 +0200 Subject: [PATCH] Fix #1386 (Add asin to recognized identifiers) --- cps/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/db.py b/cps/db.py index 1e2b1af7..499765d1 100755 --- a/cps/db.py +++ b/cps/db.py @@ -100,7 +100,7 @@ class Identifiers(Base): return self.type def __repr__(self): - if self.type == "amazon": + if self.type == "amazon" or self.type == "asin": return u"https://amzn.com/{0}".format(self.val) elif self.type == "isbn": return u"https://www.worldcat.org/isbn/{0}".format(self.val)