From 31d93283e56184d6394ee9241dbb7cfab34921f3 Mon Sep 17 00:00:00 2001 From: Anthon98 <60883871+Anthon98@users.noreply.github.com> Date: Fri, 29 Oct 2021 15:12:31 +0300 Subject: [PATCH] TSL importer now contains publisher_id (#53) Initially forgot to add publisher_id but now the importer also includes it. --- events/importer/tsl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/events/importer/tsl.py b/events/importer/tsl.py index e94ef203d..5e207af6f 100644 --- a/events/importer/tsl.py +++ b/events/importer/tsl.py @@ -139,6 +139,7 @@ def save_kw(self: 'events.importer.tsl.TslImporter') -> None: for k, v in self.keywords.items(): kw = Keyword(data_source=getattr(self, 'data_source')) kw.id = k + kw.publisher_id = getattr(self, 'organization') for lang, lang_val in v.items(): langformat = 'name_%s' % lang setattr(kw, langformat, lang_val)