def insertcsv(self):
    if (self.pnp != 'Pass'):
        return False
    session.bulk_save_objects(self.parsecsv())
    session.commit()
    return True
def insertcsv(self):
    if (self.pnp != 'Pass'):
        return False
    session.bulk_save_objects(self.parsecsv())
    session.commit()
    return True