diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-15 01:17:57 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-15 01:17:57 -0800 |
commit | 985d0f42b38029abfbdd4fd0699cdee9517b066b (patch) | |
tree | f0aaf0bb2ec4d80b326bc4d18902eb24284cb061 /fatcat_scholar/schema.py | |
parent | 78472e82535da109f63e1b5c5ce8465016c2f8cc (diff) | |
download | fatcat-scholar-985d0f42b38029abfbdd4fd0699cdee9517b066b.tar.gz fatcat-scholar-985d0f42b38029abfbdd4fd0699cdee9517b066b.zip |
make fmt
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r-- | fatcat_scholar/schema.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index 131cf74..b5a4749 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -114,11 +114,11 @@ class ScholarBiblio(BaseModel): """ if style == "bibtex": type_map = { - 'article-journal': 'article', - 'conference-paper': 'proceedings', - 'thesis': 'phdthesis', - 'book': 'book', - None: 'unpublished', + "article-journal": "article", + "conference-paper": "proceedings", + "thesis": "phdthesis", + "book": "book", + None: "unpublished", } val = f"@{type_map.get(self.release_type, 'unpublished')}{{{self.release_ident},\n" val += f" title = {{{self.title}}}\n" @@ -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: |