X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..768497c92cb75290c032f4ffd586eccab6fd3eec:/src/lesmianator/models.py?ds=sidebyside diff --git a/src/lesmianator/models.py b/src/lesmianator/models.py index 092a828fa..684d1c4bf 100644 --- a/src/lesmianator/models.py +++ b/src/lesmianator/models.py @@ -126,7 +126,7 @@ class Continuations(models.Model): # count from this book only output = StringIO() wldoc = book.wldocument(parse_dublincore=False) - output = wldoc.as_text(('raw-text',)).get_string() + output = wldoc.as_text(('raw-text',)).get_bytes() del wldoc conts = {}