Skip to content

Commit

Permalink
[Version] v1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Oct 27, 2020
1 parent 0102419 commit 39b6bd5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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).

## [1.6.3] - 2020-10-27
### Updated
- Evaluator factory improvements

## [1.6.2] - 2020-10-27
### Added
- Evaluator factory tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OctoBot-Evaluators [1.6.2](https://github.com/Drakkar-Software/OctoBot-Evaluators/blob/master/CHANGELOG.md)
# OctoBot-Evaluators [1.6.3](https://github.com/Drakkar-Software/OctoBot-Evaluators/blob/master/CHANGELOG.md)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a0c08eab5d4c440aa6e3fc3061ad0520)](https://app.codacy.com/gh/Drakkar-Software/OctoBot-Evaluators?utm_source=github.com&utm_medium=referral&utm_content=Drakkar-Software/OctoBot-Evaluators&utm_campaign=Badge_Grade_Dashboard)
[![PyPI](https://img.shields.io/pypi/v/OctoBot-Evaluators.svg)](https://pypi.python.org/pypi/OctoBot-Evaluators/)
[![Coverage Status](https://coveralls.io/repos/github/Drakkar-Software/OctoBot-Evaluators/badge.svg)](https://coveralls.io/github/Drakkar-Software/OctoBot-Evaluators)
Expand Down
2 changes: 1 addition & 1 deletion octobot_evaluators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# License along with this library.

PROJECT_NAME = "OctoBot-Evaluators"
VERSION = "1.6.2" # major.minor.revision
VERSION = "1.6.3" # major.minor.revision
9 changes: 5 additions & 4 deletions octobot_evaluators/evaluators/evaluator_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ async def create_evaluators(evaluator_parent_class,
for evaluator_class in tentacles_management.get_all_classes_from_parent(evaluator_parent_class)
for cryptocurrency in _get_cryptocurrencies_to_create(evaluator_class,
crypto_currency_name_by_crypto_currencies)
for symbol in _get_symbols_to_create(evaluator_class, symbols_by_crypto_currency_tickers,
cryptocurrency, symbols)
for symbol in _get_symbols_to_create(evaluator_class,
symbols_by_crypto_currency_tickers,
cryptocurrency,
symbols)
for time_frame in _get_time_frames_to_create(evaluator_class, time_frames)
]

Expand All @@ -80,8 +82,7 @@ def _get_cryptocurrencies_to_create(evaluator_class, crypto_currency_name_by_cry
def _get_symbols_to_create(evaluator_class, symbols_by_crypto_currencies, cryptocurrency, symbols):
currency_symbols = symbols
if cryptocurrency is not None:
currency_symbols = symbols_by_crypto_currencies[cryptocurrency] \
if cryptocurrency in symbols_by_crypto_currencies else []
currency_symbols = symbols_by_crypto_currencies.get(cryptocurrency, [])
return currency_symbols if currency_symbols and not evaluator_class.get_is_symbol_wildcard() else [None]


Expand Down

0 comments on commit 39b6bd5

Please sign in to comment.