Subversion Repositories SmartDukaan

Rev

Rev 14001 | Rev 14005 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14001 Rev 14002
Line 173... Line 173...
173
    print "total_count", total_count
173
    print "total_count", total_count
174
    if total_count > skip:
174
    if total_count > skip:
175
        cursor = cursor.skip(skip).limit(window)
175
        cursor = cursor.skip(skip).limit(window)
176
        orders = []
176
        orders = []
177
        for order in cursor:
177
        for order in cursor:
178
            print order['orderId']
178
            del(order["_id"])
-
 
179
            orders.append(order)
179
        result['data'] = orders
180
        result['data'] = orders
180
        result['window'] = window
181
        result['window'] = window
181
        result['totalCount'] = total_count 
182
        result['totalCount'] = total_count 
182
        result['currCount'] = cursor.count()
183
        result['currCount'] = cursor.count()
183
        result['totalPages'] = pages
184
        result['totalPages'] = pages