mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
don't check negated if both trees are handled
This commit is contained in:
parent
8a83e050d0
commit
2f40e23dcc
|
@ -71,14 +71,14 @@ def file_dump_json(filename, data, is_zip=False) -> None:
|
|||
:param data: JSON Data to save
|
||||
:return:
|
||||
"""
|
||||
if not is_zip:
|
||||
with open(filename, 'w') as fp:
|
||||
json.dump(data, fp, default=str)
|
||||
else:
|
||||
if is_zip:
|
||||
if not filename.endswith('.gz'):
|
||||
filename = filename + '.gz'
|
||||
with gzip.open(filename, 'w') as fp:
|
||||
json.dump(data, fp, default=str)
|
||||
else:
|
||||
with open(filename, 'w') as fp:
|
||||
json.dump(data, fp, default=str)
|
||||
|
||||
|
||||
def format_ms_time(date: str) -> str:
|
||||
|
|
Loading…
Reference in New Issue
Block a user