corrected available_languages to return a dict of strs to strs

This commit is contained in:
Joshua Chin 2015-06-17 12:43:13 -04:00
parent 6cc962bfea
commit 9f288bac31

View File

@ -95,7 +95,7 @@ def available_languages(wordlist='combined'):
list_name = path.name.split('.')[0]
name, lang = list_name.split('_')
if name == wordlist:
available[lang] = path
available[lang] = str(path)
return available
@ -122,9 +122,8 @@ def get_frequency_list(lang, wordlist='combined', match_cutoff=30):
"nearest match, which is %r (%s)."
% (lang, best, langcodes.get(best).language_name('en'))
)
filepath = available[str(best)]
return read_dBpack(str(filepath))
return read_dBpack(available[best])
def dB_to_freq(dB):