def __init__(self): # Set database parameters self.client = settings.DB_CLIENT self.collection = settings.BALANCE self.types = settings.AVAILABLE_COIN_ID self.account = Account()
def initialize(self): self.account = Account()
def __init__(self, *args, **kwargs): self.client = settings.DB_CLIENT self.database = self.client[settings.DBNAME] self.collection = self.database[settings.ACCOUNTS] self.account = Account()