Skip to content

Commit

Permalink
Fix empty string being used for Korean Pendulum Effect when no effect
Browse files Browse the repository at this point in the history
Closes #160
  • Loading branch information
kevinlul committed Sep 1, 2024
1 parent 45bca93 commit c7744fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/job_ocgtcg.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ def replace_text(
official_card: Dict[str, str],
logger: logging.Logger,
) -> None:
source = official_card[skey]
# CSV only has empty strings, but null is preferred for YAML and JSON
source = official_card[skey] or None
if document[pkey][ckey] != source:
logger.info(
f"{pkey}.{ckey} does not match: O[{source}] Y[{document[pkey][ckey]}]"
Expand Down

0 comments on commit c7744fa

Please sign in to comment.