diff --git a/get_def.py b/get_def.py index a7e467c..9d4c3bc 100644 --- a/get_def.py +++ b/get_def.py @@ -52,19 +52,19 @@ def print_def(console: Console, response: requests.Response): for item in meanings: console.print( - f"[bold]{meanings.index(item) + 1}. [underline]{item["partOfSpeech"]}" + f"[bold]{meanings.index(item) + 1}. [underline]{item['partOfSpeech']}" ) for definition in item["definitions"]: console.print( Padding( - f"[bold blue]Definition:[/bold blue] {definition.get("definition")}", + f"[bold blue]Definition:[/bold blue] {definition.get('definition')}", (0, 0, 0, 3), ) ) if definition.get("example") is not None: console.print( Padding( - f"[bold magenta]Example:[/bold magenta] {definition.get("example")}", + f"[bold magenta]Example:[/bold magenta] {definition.get('example')}", (0, 0, 0, 3), ) ) diff --git a/pyproject.toml b/pyproject.toml index aa2285b..3e5eda5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "get-def" -version = "0.5" +version = "0.6" authors = [ { name="Jeffrey Serio", email="hyperreal@fedoraproject.org" }, ]