def __init__(self):
    logging.info('initialize blocks_view')
    self.updateBlock = super.session.prepare('\n        insert into blocks_view(sha256_id, block_id, ver, raw, sha256, nonce, consent_algorithm, predecessor, counter, setup)\n        values(?, ?, ?, ?, ?, ?, ?, ?, ? toTimestamp(now()))')
    self.updateStatusStatement = super.session.prepare('update candidate set processed=true where sha256_id = ?')
    self.genesis()
def __init__(self):
    logging.info('initialize blocks_view')
    self.updateBlock = super.session.prepare('\n        insert into blocks_view(sha256_id, block_id, ver, raw, sha256, nonce, consent_algorithm, predecessor, counter, setup)\n        values(?, ?, ?, ?, ?, ?, ?, ?, ? toTimestamp(now()))')
    self.updateStatusStatement = super.session.prepare('update candidate set processed=true where sha256_id = ?')
    self.genesis()