From dcc569840ce3a4824d40f272e8df17e929cb64c6 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 17 Mar 2024 20:48:33 +0100 Subject: [PATCH] data_models: update PublicationEntry.doi_url --- rendercv/data_models.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rendercv/data_models.py b/rendercv/data_models.py index 33f2328..3d339b2 100644 --- a/rendercv/data_models.py +++ b/rendercv/data_models.py @@ -218,12 +218,7 @@ class PublicationEntry(RenderCVBaseModel): @functools.cached_property def doi_url(self) -> str: """Return the URL of the DOI.""" - # self.doi == "" is added because None values are replaced with "" in - # renderer.TemplatedFile class (to make templating easier) - if self.doi is None or self.doi == "": - return "" - else: - return f"https://doi.org/{self.doi}" + return f"https://doi.org/{self.doi}" @functools.cached_property def date_string(self) -> str: