series.json fix

This commit is contained in:
Tim
2024-03-18 22:28:04 -04:00
parent 748201eaf6
commit 7ec9af3e6d

View File

@@ -466,7 +466,7 @@ class FinalOHLCRepository (OHLCRepository):
chain_id_str = str(current_chain.get().chain_id)
if chain_id_str not in self.series:
self.series[chain_id_str] = {}
self.series[chain_id_str][f'{key[0]}|{key[1]}'] = {'start': timestamp(start)}
self.series[chain_id_str][f'{key[0]}|{period_name(key[1])}'] = {'start': timestamp(start)}
self._series_dirty = True
else:
updated = update_ohlc(prev, period, time, price)