flake 8 fix
This commit is contained in:
parent
95ba016558
commit
b7b9fd1fd5
@ -6,7 +6,6 @@ from typing import Dict
|
|||||||
|
|
||||||
from flask import Flask, request
|
from flask import Flask, request
|
||||||
# from flask_restful import Resource, Api
|
# from flask_restful import Resource, Api
|
||||||
from json import dumps
|
|
||||||
from freqtrade.rpc.rpc import RPC, RPCException
|
from freqtrade.rpc.rpc import RPC, RPCException
|
||||||
from ipaddress import IPv4Address
|
from ipaddress import IPv4Address
|
||||||
|
|
||||||
@ -162,8 +161,8 @@ class ApiServer(RPC):
|
|||||||
logger.info("LocalRPC - Profit Command Called")
|
logger.info("LocalRPC - Profit Command Called")
|
||||||
|
|
||||||
stats = self._rpc_trade_statistics(self._config['stake_currency'],
|
stats = self._rpc_trade_statistics(self._config['stake_currency'],
|
||||||
self._config['fiat_display_currency']
|
self._config['fiat_display_currency']
|
||||||
)
|
)
|
||||||
|
|
||||||
return json.dumps(stats, indent=4, sort_keys=True, default=str)
|
return json.dumps(stats, indent=4, sort_keys=True, default=str)
|
||||||
except RPCException as e:
|
except RPCException as e:
|
||||||
@ -185,7 +184,6 @@ class ApiServer(RPC):
|
|||||||
logger.exception("API Error calling status table", e)
|
logger.exception("API Error calling status table", e)
|
||||||
return "Error querying open trades - maybe there are none."
|
return "Error querying open trades - maybe there are none."
|
||||||
|
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""
|
"""
|
||||||
Handler for /start.
|
Handler for /start.
|
||||||
|
Loading…
Reference in New Issue
Block a user