Skip to content

Commit

Permalink
Update flask_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Feb 6, 2018
1 parent 5e16c5f commit db586c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/config/middleware/flask_app.py
Expand Up @@ -54,16 +54,16 @@ def domain(self):
return default
domains = multiple.split(';')
try:
return domains[self.__i18n_path_idx]
return domains[self._i18n_path_idx]
except IndexError:
return default

@property
def translation_directories(self):
self.__i18n_path_idx = 0
self._i18n_path_idx = 0
for path in super(CKANBabel, self).translation_directories:
yield path
self.__i18n_path_idx += 1
self._i18n_path_idx += 1


def make_flask_stack(conf, **app_conf):
Expand Down

0 comments on commit db586c7

Please sign in to comment.