From 940c9c45d779011055fb151a2e5d04232ec7b1d1 Mon Sep 17 00:00:00 2001 From: Zaroz Date: Tue, 2 Mar 2021 23:46:02 -0600 Subject: [PATCH 1/2] Updated db.py changed __repr__ else statement to allow for custom id entries --- cps/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/db.py b/cps/db.py index 2bc0fc51..def43ffe 100644 --- a/cps/db.py +++ b/cps/db.py @@ -159,7 +159,7 @@ class Identifiers(Base): elif format_type == "url": return u"{0}".format(self.val) else: - return u"" + return u"{0}".format(self.val) class Comments(Base): From 5511925ba20ff75bd0833de45d9dae1655b010bd Mon Sep 17 00:00:00 2001 From: Zaroz Date: Wed, 3 Mar 2021 21:18:08 -0600 Subject: [PATCH 2/2] Removed elif "url" identifier format type Removed elif "url" identifier format type, since else output is identical --- cps/db.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cps/db.py b/cps/db.py index def43ffe..692b012d 100644 --- a/cps/db.py +++ b/cps/db.py @@ -156,8 +156,6 @@ class Identifiers(Base): return u"https://portal.issn.org/resource/ISSN/{0}".format(self.val) elif format_type == "isfdb": return u"http://www.isfdb.org/cgi-bin/pl.cgi?{0}".format(self.val) - elif format_type == "url": - return u"{0}".format(self.val) else: return u"{0}".format(self.val)