mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
rest_client.py
optimised with var 'configstatus'
This commit is contained in:
parent
218d22ed52
commit
a85e656e8d
|
@ -176,9 +176,10 @@ class FtRestClient():
|
||||||
|
|
||||||
def ping(self):
|
def ping(self):
|
||||||
"""simple ping"""
|
"""simple ping"""
|
||||||
if not self.show_config():
|
configstatus = self.show_config()
|
||||||
|
if not configstatus:
|
||||||
return {"status": "not_running"}
|
return {"status": "not_running"}
|
||||||
elif self.show_config()['state'] == "running":
|
elif configstatus['state'] == "running":
|
||||||
return {"status": "pong"}
|
return {"status": "pong"}
|
||||||
else:
|
else:
|
||||||
return {"status": "not_running"}
|
return {"status": "not_running"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user