Rename Agora trades function

This commit is contained in:
Mark Veidemanis 2021-12-24 17:35:17 +00:00
parent 7b59a28c4d
commit 48b1871cf8
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class Agora(object):
self.log.error("Cannot parse {content}", content=data.content) self.log.error("Cannot parse {content}", content=data.content)
return str(data.content) return str(data.content)
def get_active_trades(self): def dashboard(self):
rtrn = self.agora.dashboard() rtrn = self.agora.dashboard()
return rtrn return rtrn

View File

@ -74,7 +74,7 @@ class WebApp(object):
@app.route("/trades") @app.route("/trades")
def trades(self, request): def trades(self, request):
trade_list = self.agora.get_active_trades() trade_list = self.agora.dashboard()
return dumps(trade_list) return dumps(trade_list)
@app.route("/messages/<string:contact_id>") @app.route("/messages/<string:contact_id>")