def push_comment(self, address=0, comment=None):
"""
Push a standard comment
"""
if comment is None:
return False
data = {"address": address,
"comment": comment}
endpoint = self.prepare_endpoint('comments')
res = self.poli_post(endpoint, data)
if res["result"]:
g_logger.debug(
"Comment %s sent for address 0x%x",
comment,
address)
else:
g_logger.error("Cannot send comment %s ( 0x%x )", comment, address)
return res["result"]
评论列表
文章目录