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

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

src/d/j/django-bitcoin-HEAD/django_bitcoin/tasks.py   django-bitcoin(Download)
                continue
            ba = ba[0]
            dps = DepositTransaction.objects.filter(txid=tx[u'txid'], amount=tx['amount'], address=ba)
            if dps.count() > 1:
                raise Exception(u"Too many deposittransactions for the same ID!")
    print "Address check"
    for ba in BitcoinAddress.objects.filter(least_received_confirmed__gt=0, migrated_to_transactions=True):
        dts = DepositTransaction.objects.filter(address=ba, wallet=ba.wallet)
        s = dts.aggregate(Sum('amount'))['amount__sum'] or Decimal(0)
        if s != ba.least_received:

src/d/j/django-bitcoin-HEAD/django_bitcoin/management/commands/CreateInitialDepositTransactions.py   django-bitcoin(Download)
                original_balance = ba.wallet.last_balance
                with CacheLock('query_bitcoind_'+str(ba.id)):
                    dts = DepositTransaction.objects.filter(address=ba, wallet=ba.wallet)
                    for dp in dts:
                        wt = WalletTransaction.objects.create(amount=dp.amount, to_wallet=ba.wallet, created_at=ba.created_at,

src/d/j/django-bitcoin-HEAD/django_bitcoin/management/commands/CheckDbIntegrity.py   django-bitcoin(Download)
        print "Address check"
        for ba in BitcoinAddress.objects.filter(least_received_confirmed__gt=0, migrated_to_transactions=True):
            dts = DepositTransaction.objects.filter(address=ba, wallet=ba.wallet)
            s = dts.aggregate(Sum('amount'))['amount__sum'] or Decimal(0)
            if s != ba.least_received:

src/d/j/django-bitcoin-HEAD/django_bitcoin/management/commands/CheckTransactions.py   django-bitcoin(Download)
            for t in transactions:
                if t[u'category'] != u'immature' and (not last_check_time or (int(t['time'])) >= last_check_time) and t[u'amount']>0:
                    dps = DepositTransaction.objects.filter(txid=t[u'txid'])
                    if dps.count() == 0:
                        try: