convert_backtesting: fstrings in use

This commit is contained in:
Samuel Husso 2018-06-23 16:35:35 -05:00
parent a2063ede55
commit 21fc933678

View File

@ -143,15 +143,14 @@ def convert_main(args: Namespace) -> None:
interval = str_interval
break
# change order on pairs if old ticker interval found
filename_new = path.join(path.dirname(filename),
"{}_{}-{}.json".format(currencies[1],
currencies[0], interval))
f"{currencies[1]}_{currencies[0]}-{interval}.json")
elif ret_string:
interval = ret_string.group(0)
filename_new = path.join(path.dirname(filename),
"{}_{}-{}.json".format(currencies[0],
currencies[1], interval))
f"{currencies[0]}_{currencies[1]}-{interval}.json")
else:
logger.warning("file %s could not be converted, interval not found", filename)