Merge pull request #1062 from alisww/storygraph-import

add storygraph import
This commit is contained in:
Mouse Reeve
2021-05-10 16:23:00 -07:00
committed by GitHub
5 changed files with 49 additions and 2 deletions

View File

@@ -128,7 +128,9 @@ class ImportItem(models.Model):
@property
def rating(self):
"""x/5 star rating for a book"""
return int(self.data["My Rating"])
if self.data.get("My Rating", None):
return int(self.data["My Rating"])
return None
@property
def date_added(self):