Exemplo n.º 1
0
python manage.py shell_plus
from django_bitcoin.tasks import query_transactions
query_transactions()
for d in DepositTransaction.objects.all().order_by("-id")[:10]:
    print d.created_at, d.amount, d.transaction, d.under_execution

quit()



python manage.py shell_plus
from django_bitcoin.tasks import check_integrity
check_integrity()
quit()

python manage.py shell_plus
from django_bitcoin.models import update_wallet_balance
for w in Wallet.objects.filter(last_balance__gt=0):
    lb = w.last_balance
    tb_sql = w.total_balance_sql()
    tb = w.total_balance()
    if lb != tb_sql:
        print "error", w.id, lb, tb_sql
        update_wallet_balance.delay(w.id)

python manage.py shell_plus
from django_bitcoin.tasks import process_outgoing_group
process_outgoing_group()
quit()
python manage.py shell_plus
from django_bitcoin.tasks import query_transactions
query_transactions()
for d in DepositTransaction.objects.all().order_by("-id")[:10]:
    print d.created_at, d.amount, d.transaction, d.under_execution

quit()



python manage.py shell_plus
from django_bitcoin.tasks import check_integrity
check_integrity()
quit()

python manage.py shell_plus
from django_bitcoin.models import update_wallet_balance
for w in Wallet.objects.filter(last_balance__gt=0):
    lb = w.last_balance
    tb_sql = w.total_balance_sql()
    tb = w.total_balance()
    if lb != tb_sql:
        print "error", w.id, lb, tb_sql
        update_wallet_balance.delay(w.id)

python manage.py shell_plus
from django_bitcoin.tasks import process_outgoing_group
process_outgoing_group()
quit()

 def handle_noargs(self, **options):
     query_transactions()