X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b15e203d42d3fd0880ca21d6251dca6fa46405c9..4628276e4a8f159cded83f8dbf7ec8239705f84a:/src/depot/publishers/base.py?ds=sidebyside diff --git a/src/depot/publishers/base.py b/src/depot/publishers/base.py index dbf14ab7..88ee56b2 100644 --- a/src/depot/publishers/base.py +++ b/src/depot/publishers/base.py @@ -17,7 +17,7 @@ class BasePublisher: self.login() return self._session - def send_book(self, shop, book, changes=None): + def send_book(self, site_book_publish, changes=None): raise NotImplementedError() def get_description(self, wlbook, description_add=''): @@ -41,7 +41,7 @@ class BasePublisher: '{}'.format( slugify(p.readable()), p.readable(), - ) + ) if p is not None else '' for p in wlbook.meta.authors ) + '
' description += '{}
'.format( @@ -54,21 +54,21 @@ class BasePublisher: '{}'.format( slugify(p), p, - ) + ) if p is not None else '' for p in wlbook.meta.epochs ) + ' ' description += 'Rodzaj: ' + ', '.join( '{}'.format( slugify(p), p, - ) + ) if p is not None else '' for p in wlbook.meta.kinds ) + ' ' description += 'Gatunek: ' + ', '.join( '{}'.format( slugify(p), p, - ) + ) if p is not None else '' for p in wlbook.meta.genres ) + '

'