Skip to content

Commit 3ded534

Browse files
committed
Fix on charts creations. Now only creates a chart if a notification message exists
1 parent 8952f88 commit 3ded534

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/notification.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,11 @@ def create_charts(self, messages):
675675
_messages = messages[exchange][market_pair]
676676

677677
for candle_period in _messages:
678+
if len(_messages[candle_period]) == 0:
679+
continue
680+
678681
candles_data = self.all_historical_data[exchange][market_pair][candle_period]
682+
679683
try:
680684
self.create_chart(exchange, market_pair, candle_period, candles_data)
681685
except Exception :

0 commit comments

Comments
 (0)