def __init__(self): self.nemEpoch = datetime.datetime(2015, 3, 29, 0, 6, 25, 0, None) self.db = nemdb.Db() self.accounts = Accounts(self.db) self.delegations = Delegations(self.db) self.p = NemProxy()
def __init__(self, *args, **kwargs): super(BaseHandler, self).__init__(*args, **kwargs) self.db = DbFixer(Db(True)) self.api = NemProxy()