def process_timestamp(self, block): timestamp = block['timestamp'] datetime_object = datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S') if datetime_object.second == 54: account = Account(self.account) print(f'\nVoting power: {account.voting_power()}%\n') if account.voting_power() == 100: self.queue.run_voting_round()
def get_voting_power(self): acc = Account(self.account, self.steem) return acc.voting_power()