Generate reviews from import data.
This commit is contained in:
parent
1a5af7899b
commit
9933dbba54
2 changed files with 14 additions and 0 deletions
|
@ -88,6 +88,14 @@ class GoodreadsItem:
|
|||
if self.line['Exclusive Shelf']:
|
||||
return GOODREADS_SHELVES[self.line['Exclusive Shelf']]
|
||||
|
||||
@property
|
||||
def review(self):
|
||||
return self.line['My Review']
|
||||
|
||||
@property
|
||||
def rating(self):
|
||||
return int(self.line['My Rating'])
|
||||
|
||||
def __repr__(self):
|
||||
return "<GoodreadsItem {!r}>".format(self.line['Title'])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue