Skip to content

Commit

Permalink
fix: emoji column not correctly parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Dec 5, 2023
1 parent 4403e0c commit 362ad8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tagmaps/classes/load_data.py
Expand Up @@ -327,7 +327,10 @@ def _get_emoji(self, post: Dict[str, str]) -> Set[str]:
Utils.extract_emoji(post.get(self.cfg.source_map.post_body_col)),
self.cfg.select_emoji_set,
)
emoji_col = Utils.select_emoji(post.get(self.cfg.source_map.emoji_col))
emoji_col = Utils.select_emoji(
Utils.extract_emoji(post.get(self.cfg.source_map.emoji_col)),
self.cfg.select_emoji_set,
)
emoji_filtered = set.union(emoji_body, emoji_col)
if emoji_filtered:
self.stats.count_emojis_global += len(emoji_filtered)
Expand Down

0 comments on commit 362ad8f

Please sign in to comment.