if hasattr(self, '_content_stats'):
return self._content_stats
try:
- stats = self.document_books.first().wldocument().get_statistics()['total']
+ stats = self.document_books.first().wldocument(librarian2=True).get_statistics()['total']
except Exception as e:
stats = {}
self._content_stats = stats
def edit_sale(self, book):
assert book.legimi_id
- words = book.wldocument().get_statistics()['total']['words_with_fn']
+ words = book.wldocument(librarian2=True).get_statistics()['total']['words_with_fn']
price = settings.LEGIMI_SMALL_PRICE
if words > settings.LEGIMI_SMALL_WORDS: