X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/2d538a50605add2666172861744229599487f1b2..54612c196135c939a7d17d51b81b1357f6eac9c3:/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.')