From 61d48b9bfea3a96c18619e314072ba554bf782f5 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 27 Dec 2021 21:28:49 +0000 Subject: [PATCH] Add more information in transactions docstrings --- handler/transactions.py | 5 +++++ 1 file changed, 5 insertions(+) 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]: