From 666aba3d5621e9be6d4c80b63e2832d117fb8bdb Mon Sep 17 00:00:00 2001 From: zevav Date: Wed, 20 Feb 2019 11:16:42 -0500 Subject: [PATCH] bugs --- setup.py | 2 +- tatt/helpers.py | 10 +++++----- tatt/vendors/__init__.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 15e01b2..4209e87 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open('README.md') as file: setup( name="tatt", - version="0.93", + version="0.941", py_modules=['tatt'], url='https://github.com/zevaverbach/tatt', install_requires=[ diff --git a/tatt/helpers.py b/tatt/helpers.py index d6edc79..7006927 100644 --- a/tatt/helpers.py +++ b/tatt/helpers.py @@ -7,13 +7,13 @@ TAB = '\t' def make_string_all_services(free_only=False): all_services_string_formatter = ( - "Here are all the available {}speech-to-text-services:\n\n" + "\nHere are all the available {}speech-to-text-services:\n\n" ) + format_fill = "" if free_only: - all_services_string = all_services_string_formatter.format("free ") - else: - all_services_string = all_services_string_formatter.format("") + format_fill = "free " + all_services_string = all_services_string_formatter.format(format_fill) for service_name, module in vendors.STT_SERVICES.items(): if free_only and module.cost_per_15_seconds > 0: @@ -22,7 +22,7 @@ def make_string_all_services(free_only=False): f'{TAB}{service_name}{TAB}{TAB}${module.cost_per_15_seconds} per 15 seconds' ) - return all_services_string + return all_services_string + '\n' def get_service(service_name): diff --git a/tatt/vendors/__init__.py b/tatt/vendors/__init__.py index 3feb8b8..8ac4355 100644 --- a/tatt/vendors/__init__.py +++ b/tatt/vendors/__init__.py @@ -1,5 +1,5 @@ from tatt.vendors import amazon -STT_VENDORS = { +STT_SERVICES = { 'amazon': amazon, }