def process(self):
    result = super.session.execute('\n        select sha256_id, note_id, target, symbol, quantity, refer from draft where processed=false\n        ')
    for row in result:
        [sha256_id, note_id, target, symbol, quantity, refer, type] = row
        if (type == 'issue'):
            self.processIssue()
        if (type == 'transfer'):
            self.processTransfer()
        super.seesion.execute('update draft set processed=true where sha256_id = {0}\n            '.format(sha256_id))
def process(self):
    result = super.session.execute('\n        select sha256_id, note_id, target, symbol, quantity, refer from draft where processed=false\n        ')
    for row in result:
        [sha256_id, note_id, target, symbol, quantity, refer, type] = row
        if (type == 'issue'):
            self.processIssue()
        if (type == 'transfer'):
            self.processTransfer()
        super.seesion.execute('update draft set processed=true where sha256_id = {0}\n            '.format(sha256_id))