|
|
|
@ -49,6 +49,9 @@ class Agora(object):
|
|
|
|
|
"""
|
|
|
|
|
dash = self.agora.dashboard_seller()
|
|
|
|
|
dash_tmp = []
|
|
|
|
|
if "data" not in dash["response"].keys():
|
|
|
|
|
self.log.error("Data not in dashboard response: {content}", content=dash)
|
|
|
|
|
return False
|
|
|
|
|
if dash["response"]["data"]["contact_count"] > 0:
|
|
|
|
|
for contact in dash["response"]["data"]["contact_list"]:
|
|
|
|
|
contact_id = contact["data"]["contact_id"]
|
|
|
|
@ -69,7 +72,6 @@ class Agora(object):
|
|
|
|
|
return False
|
|
|
|
|
if dash["response"]["data"]["contact_count"] > 0:
|
|
|
|
|
for contact in dash["response"]["data"]["contact_list"]:
|
|
|
|
|
print(f"CONTACT {contact}")
|
|
|
|
|
contact_id = contact["data"]["contact_id"]
|
|
|
|
|
current_trades.append(contact_id)
|
|
|
|
|
buyer = contact["data"]["buyer"]["username"]
|
|
|
|
@ -101,6 +103,7 @@ class Agora(object):
|
|
|
|
|
dash = self.agora.dashboard_seller()
|
|
|
|
|
dash_tmp = []
|
|
|
|
|
if "data" not in dash["response"]:
|
|
|
|
|
self.log.error("Data not in dashboard response: {content}", content=dash)
|
|
|
|
|
return False
|
|
|
|
|
if dash["response"]["data"]["contact_count"] > 0:
|
|
|
|
|
for contact in dash["response"]["data"]["contact_list"]:
|
|
|
|
@ -147,6 +150,8 @@ class Agora(object):
|
|
|
|
|
:rtype: dict with lists
|
|
|
|
|
"""
|
|
|
|
|
dash = self.dashboard_id_only()
|
|
|
|
|
if dash is None:
|
|
|
|
|
return False
|
|
|
|
|
messages_tmp = {}
|
|
|
|
|
for contact_id in dash:
|
|
|
|
|
messages = self.get_messages(contact_id, send_irc=send_irc)
|
|
|
|
|