fix month index
This commit is contained in:
parent
2a44bac754
commit
17da0d3d65
@ -17,7 +17,7 @@ def clean_json():
|
|||||||
date = datetime.datetime.strptime(str(date), "%Y-%m-%d %H:%M:%S")
|
date = datetime.datetime.strptime(str(date), "%Y-%m-%d %H:%M:%S")
|
||||||
year = date.year
|
year = date.year
|
||||||
month = date.month
|
month = date.month
|
||||||
if year == int(Config.BACKTEST_DATA_CLEANER_YEAR) and month == int(Config.BACKTEST_DATA_CLEANER_MONTH_INDEX):
|
if year == int(Config.BACKTEST_DATA_CLEANER_YEAR) and month == int(Config.BACKTEST_DATA_CLEANER_MONTH_INDEX) + 1:
|
||||||
list.append(datas)
|
list.append(datas)
|
||||||
json_object = json.dumps(list)
|
json_object = json.dumps(list)
|
||||||
file.close()
|
file.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user