diff options
Diffstat (limited to 'babel')
-rw-r--r-- | babel/__init__.py | 2 | ||||
-rw-r--r-- | babel/numbers.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/babel/__init__.py b/babel/__init__.py index 6854931..d889503 100644 --- a/babel/__init__.py +++ b/babel/__init__.py @@ -21,4 +21,4 @@ from babel.core import UnknownLocaleError, Locale, default_locale, \ negotiate_locale, parse_locale, get_locale_identifier -__version__ = '2.0' +__version__ = '2.1' diff --git a/babel/numbers.py b/babel/numbers.py index 587d640..d7a20d1 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -134,6 +134,10 @@ def get_territory_currencies(territory, start_date=None, end_date=None, result = [] for currency_code, start, end, is_tender in curs: + if start: + start = date_(*start) + if end: + end = date_(*end) if ((is_tender and tender) or \ (not is_tender and non_tender)) and _is_active(start, end): if include_details: |