X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/2d538a50605add2666172861744229599487f1b2..b15e203d42d3fd0880ca21d6251dca6fa46405c9:/src/depot/publishers/legimi.py diff --git a/src/depot/publishers/legimi.py b/src/depot/publishers/legimi.py index c7fa26df..a85b46bc 100644 --- a/src/depot/publishers/legimi.py +++ b/src/depot/publishers/legimi.py @@ -133,6 +133,7 @@ class Legimi(BasePublisher): d = { 'errors': [], 'warnings': [], + 'info': [] } if meta.thema_main or meta.thema: if meta.thema_main: @@ -144,14 +145,14 @@ class Legimi(BasePublisher): "{code}".format(code=escape(t)) for t in meta.thema ) - d['comment'] = mark_safe(comment) + d['info'].append(mark_safe(comment)) elif meta.thema: - d['comment'] = mark_safe( + d['info'].append(mark_safe( "w kategorii " + ", ".join( "{code}".format(code=escape(t)) for t in meta.thema ) - ) + )) d['warnings'].append('Brak głównej kategorii Thema') else: d['errors'].append('Brak kategorii Thema.')