Did I find the right examples for you? yes no

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

src/i/a/IATI-Data-Quality-HEAD/iatidq/dqindicators.py   IATI-Data-Quality(Download)
def addIndicator(data):
    checkI = models.Indicator.query.filter_by(name=data["name"], indicatorgroup_id=data["indicatorgroup_id"]).first()
    if not checkI:
        with db.session.begin():
            newI = models.Indicator()

src/d/a/Datahub-Indicators-HEAD/indicators/commands.py   Datahub-Indicators(Download)
# huey tasks! not celery tasks! http://huey.readthedocs.org/en/latest/getting-started.html#getting-started-django
#from huey.djhuey.decorators import queue_command
from huey.djhuey import task
import ucsv as csv
from models import Indicator
                args[f] = False
        try:
            ind = Indicator(**args)
            ind.save()
            inds.append(ind)