From 7214e129052800e891d4676e0e0a5420b8aa84fc Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Mon, 30 Dec 2024 15:38:10 -0600 Subject: [PATCH] refactor: forgot to remove. :eyeroll: --- get_def.py | 10 ---------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/get_def.py b/get_def.py index 29368a2..3280a10 100644 --- a/get_def.py +++ b/get_def.py @@ -36,16 +36,6 @@ def main(): word = response.json()[0].get("word") phonetics = response.json()[0].get("phonetics") - phonetics_dict = {} - if len(phonetics) > 0: - for i in range(len(phonetics)): - if phonetics[i].get("text"): - phonetics_dict.update({f"Phonetic {i+1}": phonetics[i].get("text")}) - if phonetics[i].get("audio"): - phonetics_dict.update( - {f"Phonetic audio {i+1}": phonetics[i].get("audio")} - ) - phonetics_table = Table(box=box.SQUARE) phonetics_table.add_column("Phonetic Text", style="cyan") phonetics_table.add_column("Phonetic Audio") diff --git a/pyproject.toml b/pyproject.toml index c45e8fd..0c9d906 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "get-def" -version = "0.2" +version = "0.3" authors = [ { name="Jeffrey Serio", email="hyperreal@fedoraproject.org" }, ]