Merge pull request #1062 from alisww/storygraph-import
add storygraph import
This commit is contained in:
commit
27fe09a32b
5 changed files with 49 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue