Add more information in transactions docstrings

This commit is contained in:
Mark Veidemanis 2021-12-27 21:28:49 +00:00
parent 7c8f77df40
commit 61d48b9bfe
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,10 @@ class Transactions(object):
""" """
def __init__(self): def __init__(self):
"""
Initialise the Transaction object.
Set the logger.
"""
self.log = Logger("transactions") self.log = Logger("transactions")
def set_agora(self, agora): def set_agora(self, agora):
@ -84,6 +88,7 @@ class Transactions(object):
:type reference: string :type reference: string
:type amount: int :type amount: int
:return: transaction details or AMOUNT_INVALID, or False :return: transaction details or AMOUNT_INVALID, or False
:rtype: dict or string or bool
""" """
all_transactions = r.scan(0, match="tx.*") all_transactions = r.scan(0, match="tx.*")
for tx_iter in all_transactions[1]: for tx_iter in all_transactions[1]: