Skip to content

Commit

Permalink
TSL importer now contains publisher_id (#53)
Browse files Browse the repository at this point in the history
Initially forgot to add publisher_id but now the importer also includes it.
  • Loading branch information
splinestein authored Oct 29, 2021
1 parent 6d92527 commit 31d9328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions events/importer/tsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 31d9328

Please sign in to comment.