From 28d6c654e4d21bec57ea13bfdc7d5b335e0de2f5 Mon Sep 17 00:00:00 2001 From: Felix Martin Date: Sun, 23 Oct 2022 10:56:23 -0400 Subject: [PATCH] Rename and clean up a little --- .gitignore | 3 +-- poos-xray.py => ptoos-xray.py | 0 src/epub.py | 2 +- src/main.py | 2 +- test/unit_test.py | 0 5 files changed, 3 insertions(+), 4 deletions(-) rename poos-xray.py => ptoos-xray.py (100%) delete mode 100644 test/unit_test.py diff --git a/.gitignore b/.gitignore index e8d5861..6413b86 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,7 @@ __pycache__/ .vscode pokemon tmp -poos.epub -test.epub +ptoos.epub # C extensions *.so diff --git a/poos-xray.py b/ptoos-xray.py similarity index 100% rename from poos-xray.py rename to ptoos-xray.py diff --git a/src/epub.py b/src/epub.py index 709a711..2280162 100644 --- a/src/epub.py +++ b/src/epub.py @@ -42,7 +42,7 @@ def patch_chapter(chapter: epub.EpubHtml, pokemon_lookup: Dict[str, Pokemon]): tag = soup.new_tag("a") tag.string = word tag.attrs["href"] = f"np_pokedex.xhtml#{POKEMON_ID_PREFIX}{key}" - # tag.attrs["style"] = "color:black;text-decoration:none" + tag.attrs["style"] = "color:black;text-decoration:none" return tag def patch_string(section: NavigableString) -> List: diff --git a/src/main.py b/src/main.py index f563542..7cfc293 100644 --- a/src/main.py +++ b/src/main.py @@ -16,6 +16,6 @@ def main(): try: ptoos_epub = sys.argv[1] except IndexError: - ptoos_epub = "poos.epub" + ptoos_epub = "ptoos.epub" pokemon = src.pokemon.get_pokemon() src.epub.patch(ptoos_epub, pokemon) diff --git a/test/unit_test.py b/test/unit_test.py deleted file mode 100644 index e69de29..0000000