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