diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-18 14:33:45 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-18 14:33:45 -0800 |
commit | ca11f5f79fe520b7b963d2a1263fe58523e211fd (patch) | |
tree | 58c16e8cff26c9dbbe0b8b43502b7bce7c980f25 /fatcat_scholar/schema.py | |
parent | 3561dd54daadbcc4f076c699b87654b921d81c36 (diff) | |
download | fatcat-scholar-ca11f5f79fe520b7b963d2a1263fe58523e211fd.tar.gz fatcat-scholar-ca11f5f79fe520b7b963d2a1263fe58523e211fd.zip |
lint: fix small bugs and type annotations
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r-- | fatcat_scholar/schema.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index 2f0f04e..5ac3aab 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -142,7 +142,7 @@ class ScholarBiblio(BaseModel): val = ", ".join(self.contrib_names) if val: val += ". " - val += f' "self.title." ' + val += f' "{self.title}." ' if self.container_name: val += self.container_name if self.volume and self.issue: @@ -152,6 +152,7 @@ class ScholarBiblio(BaseModel): if self.pages: val += f": {self.pages}" return val + return None class ScholarFulltext(BaseModel): |