Commit 7793da09 authored by Michal Čihař's avatar Michal Čihař

Ensure we create storage before using it

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 627a3cef
......@@ -79,6 +79,7 @@ def create_source_index():
'''
Creates source string index.
'''
create_index()
return STORAGE.create_index(SourceSchema(), 'source')
......@@ -86,6 +87,7 @@ def create_target_index(lang):
'''
Creates traget string index for given language.
'''
create_index()
return STORAGE.create_index(TargetSchema(), 'target-%s' % lang)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment