mirror of
https://codeberg.org/hyperreal/get-def
synced 2025-01-18 16:33:45 +01:00
refactor: forgot to remove. :eyeroll:
This commit is contained in:
parent
ca9f044eaf
commit
7214e12905
10
get_def.py
10
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")
|
||||
|
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "get-def"
|
||||
version = "0.2"
|
||||
version = "0.3"
|
||||
authors = [
|
||||
{ name="Jeffrey Serio", email="hyperreal@fedoraproject.org" },
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user