Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/a/d/adhawk-HEAD/adhawk/libs/db_script/management/commands/find_family.py   adhawk(Download)
            for line in open(rsf):
                f1_id,f2_id = line.strip().split('\t')
                f1 = Funder.objects.get(FEC_id=f1_id)
                f2 = Funder.objects.get(FEC_id=f2_id)
                self.remove_set.add((f1,f2))

src/a/d/adhawk-HEAD/adhawk/libs/db_script/fec_kb_updater.py   adhawk(Download)
        for r in ec:
            cr = CommitteeResult(*r)
            old_c = Funder.objects.get(FEC_id=cr.committee_id)
            if diff_committee(old_c,cr):
                merged = merge_committee_object(old_c,cr)
        for r in ec:
            cr = CommitteeResult(*r)
            old_c = Funder.objects.get(FEC_id=cr.committee_id)
            if diff_committee(old_c,cr):
                merged = merge_committee_object(old_c,cr)

src/a/d/adhawk-HEAD/adhawk/libs/db_script/reporting_kb_updater.py   adhawk(Download)
    media_profile.media_type=media_type
    try:
        funder = Funder.objects.get(FEC_id=mpr.fec_id)
        media_profile.funder=funder
    except Funder.DoesNotExist:

src/a/d/adhawk-HEAD/adhawk/libs/db_script/ftum_importer.py   adhawk(Download)
            log.info('updating funder %s'%(fec_id))
            try:
                funder = Funder.objects.get(FEC_id=fec_id)
            except Funder.DoesNotExist:
                log.warning('...creating funder %s (not in db yet!)'%(fec_id,))