data_models: update PublicationEntry.doi_url

This commit is contained in:
Sina Atalay 2024-03-17 20:48:33 +01:00
parent b61eb5f897
commit dcc569840c
1 changed files with 1 additions and 6 deletions

View File

@ -218,11 +218,6 @@ 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}"
@functools.cached_property