Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/i/a/IATI-Data-Quality-HEAD/iatidq/inforesult.py   IATI-Data-Quality(Download)
def add_type(name, description):
    checkIRT = models.InfoType.query.filter(name=name).first()
    if not checkIRT:
        with db.session.begin():
            it = models.InfoType()
        with db.session.begin():
            if not infotype:
                infotype = models.InfoType()
 
            infotype.setup(