mirror of https://github.com/eyhc1/rendercv.git
data_models: update PublicationEntry.doi_url
This commit is contained in:
parent
b61eb5f897
commit
dcc569840c
|
@ -218,11 +218,6 @@ class PublicationEntry(RenderCVBaseModel):
|
||||||
@functools.cached_property
|
@functools.cached_property
|
||||||
def doi_url(self) -> str:
|
def doi_url(self) -> str:
|
||||||
"""Return the URL of the DOI."""
|
"""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
|
@functools.cached_property
|
||||||
|
|
Loading…
Reference in New Issue