def detailAllBooks():
    objs = list(AmazonTradeIn.objects.values_list('productcode', flat=True))
    random.shuffle(objs)
    print 'Objs len is %d' % (len(objs),)
    print 'ok done with that'
    tasks.process_lots_of_items(objs)
Beispiel #2
0
def lazy(request):
    objs = Amazon_NR.objects.values_list(
        'productcode', flat=True).filter(productcode=request.GET['product'])
    tasks.process_lots_of_items(objs)
    return HttpResponse(request.GET['product'] + " : " + str(objs))
Beispiel #3
0
def lazy(request):
    objs = Amazon.objects.values_list('productcode', flat=True).filter(productcode=request.GET['product'])
    tasks.process_lots_of_items(objs)
    return HttpResponse(request.GET['product'] + " : " + str(objs))
Beispiel #4
0
def detailAllBooks():
    objs = list(AmazonTradeIn.objects.values_list('productcode', flat=True))
    random.shuffle(objs)
    print 'Objs len is %d' % (len(objs), )
    print 'ok done with that'
    tasks.process_lots_of_items(objs)
Beispiel #5
0
def detailAllBooks():
    objs = AmazonMongoTradeIn.objects.values_list('id', flat=True)
    print 'Objs len is %d' % (len(objs),)
    print 'ok done with that'
    tasks.process_lots_of_items(objs)