fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ad3a0f
)
legimi fix
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 9 Oct 2023 13:46:31 +0000
(15:46 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 9 Oct 2023 13:46:31 +0000
(15:46 +0200)
src/depot/publishers/legimi.py
patch
|
blob
|
history
diff --git
a/src/depot/publishers/legimi.py
b/src/depot/publishers/legimi.py
index
75c21cf
..
6802d14
100644
(file)
--- a/
src/depot/publishers/legimi.py
+++ b/
src/depot/publishers/legimi.py
@@
-356,8
+356,9
@@
class Legimi(BasePublisher):
data=current
)
data=current
)
- def edit_sale(self, book):
- assert book.legimi_id
+ def edit_sale(self, site_book):
+ book = site_book.book
+ assert site_book.external_id
words = book.wldocument(librarian2=True).get_statistics()['total']['words_with_fn']
words = book.wldocument(librarian2=True).get_statistics()['total']['words_with_fn']
@@
-369,7
+370,7
@@
class Legimi(BasePublisher):
data = {
'ValidationTrue': 'true',
data = {
'ValidationTrue': 'true',
- 'Id':
book.legimi
_id,
+ 'Id':
site_book.external
_id,
'SalesPromotionId': "0",
'IsLibraryPass': "False",
'OriginalEnterToTheMarketType': "No",
'SalesPromotionId': "0",
'IsLibraryPass': "False",
'OriginalEnterToTheMarketType': "No",
@@
-388,6
+389,6
@@
class Legimi(BasePublisher):
}
self.session.post(
}
self.session.post(
- self.EDIT_SALE_URL %
book.legimi
_id,
+ self.EDIT_SALE_URL %
site_book.external
_id,
data=data
)
data=data
)