Skip to content

Commit

Permalink
Process links in block frames
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhijeetKrishnan committed Aug 21, 2024
1 parent d2cbaee commit 46f9f92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/frame_service/wavu/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@ def test_process_links() -> None:
utils._process_links("[[Azucena combos#Mini-combos|+27a]]")
== "[+27a](https://wavu.wiki/t/Azucena_combos#Mini-combos 'Mini-combo')"
)
assert (
utils._process_links("[[Devil Jin combos#Mini-combos|+10]]")
== "[+10](https://wavu.wiki/t/Devil_Jin_combos#Mini-combos 'Mini-combo')"
)
2 changes: 1 addition & 1 deletion src/frame_service/wavu/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _convert_json_move(move_json: Any) -> WavuMove:

damage = _normalize_data(move_json["damage"])

on_block = _remove_html_tags(_normalize_data(move_json["block"]))
on_block = _remove_html_tags(_normalize_data(_process_links(move_json["block"])))

on_hit = _remove_html_tags(_normalize_data(_process_links(move_json["hit"])))

Expand Down

0 comments on commit 46f9f92

Please sign in to comment.