mirror of
https://github.com/rendercv/rendercv.git
synced 2026-10-23 04:44:41 -04:00
data_models: update PublicationEntry.doi_url
This commit is contained in:
1 parent
b61eb5f897
commit
dcc569840c
1 file changed
+1
-6
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user