Skip to content

Commit

Permalink
Fixed TSL publisher mapping (#54)
Browse files Browse the repository at this point in the history
Fixed TSL publisher mapping so that the importer doesn't fail at this phase.
  • Loading branch information
splinestein authored Nov 2, 2021
1 parent 31d9328 commit d5d2f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/importer/tsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +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')
kw.publisher = getattr(self, 'organization')
for lang, lang_val in v.items():
langformat = 'name_%s' % lang
setattr(kw, langformat, lang_val)
Expand Down

0 comments on commit d5d2f43

Please sign in to comment.