fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix stats api
[redakcja.git]
/
src
/
depot
/
publishers
/
legimi.py
diff --git
a/src/depot/publishers/legimi.py
b/src/depot/publishers/legimi.py
index
dbfd71e
..
2b535f9
100644
(file)
--- a/
src/depot/publishers/legimi.py
+++ b/
src/depot/publishers/legimi.py
@@
-356,7
+356,7
@@
class Legimi(BasePublisher):
def edit_sale(self, book):
assert book.legimi_id
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:
price = settings.LEGIMI_SMALL_PRICE
if words > settings.LEGIMI_SMALL_WORDS: