diff --git a/CHANGELOG.md b/CHANGELOG.md index 314e5c4..25a81bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.1] - 2022.04.15 +### Fixes +- Fixed paramval2str type error for non-str lists + + ## [2.0.0] - 2021.06.14 ### Added - Live trading support (needs custom `backtrader`, see `README.md` for details) diff --git a/backtrader_plotting/utils.py b/backtrader_plotting/utils.py index 5bb5baf..7c733d8 100644 --- a/backtrader_plotting/utils.py +++ b/backtrader_plotting/utils.py @@ -24,7 +24,7 @@ def paramval2str(name, value): elif isinstance(value, float): return f"{value:.2f}" elif isinstance(value, (list,tuple)): - return ','.join(value) + return ','.join(map(lambda x: paramval2str(name, x), value)) elif isinstance(value, type): return value.__name__ else: diff --git a/setup.py b/setup.py index 510ec4a..69da278 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='backtrader_plotting', - version='2.0.0', + version='2.0.1', description='Plotting package for Backtrader (Bokeh)',