|
|
@ -273,7 +273,7 @@ class Publications(Bureau):
|
|
|
|
entry.source = feed.feed.title
|
|
|
|
entry.source = feed.feed.title
|
|
|
|
entry.dbhash = self._make_shorturl(entry.link)
|
|
|
|
entry.dbhash = self._make_shorturl(entry.link)
|
|
|
|
entry.svg = code128.svg("PBr." + entry.dbhash)
|
|
|
|
entry.svg = code128.svg("PBr." + entry.dbhash)
|
|
|
|
encoded_svg = b64encode(entry.svg).decode()
|
|
|
|
encoded_svg = b64encode(bytes(entry.svg, 'utf-8')).decode()
|
|
|
|
encoded_data = "data:image/svg+xml;charset=utf-8;base64," + encoded_svg
|
|
|
|
encoded_data = "data:image/svg+xml;charset=utf-8;base64," + encoded_svg
|
|
|
|
entry.svg = '<img src="%s"/>' % encoded_data
|
|
|
|
entry.svg = '<img src="%s"/>' % encoded_data
|
|
|
|
|
|
|
|
|
|
|
|