Subversion Repositories SmartDukaan

Rev

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

Rev 19485 Rev 19486
Line 3232... Line 3232...
3232
def fetchCrmRefundUsers(status,offset,limit):
3232
def fetchCrmRefundUsers(status,offset,limit):
3233
    cursor = list(get_mongo_connection().Dtr.crmrefundwallet.find({"status":status}).skip(offset).limit(limit).sort("created_timestamp",-1))
3233
    cursor = list(get_mongo_connection().Dtr.crmrefundwallet.find({"status":status}).skip(offset).limit(limit).sort("created_timestamp",-1))
3234
    return cursor
3234
    return cursor
3235
 
3235
 
3236
def fetchCrmRefundByBatchId(batchId):
3236
def fetchCrmRefundByBatchId(batchId):
3237
    cursor = list(get_mongo_connection().Dtr.crmrefundwallet.find({"batchId":batchId}))
3237
    cursor = list(get_mongo_connection().Dtr.crmrefundwallet.find({"batchId":int(batchId)}))
3238
    return cursor
3238
    return cursor
3239
 
3239
 
3240
def todict(obj, classkey=None):
3240
def todict(obj, classkey=None):
3241
    if isinstance(obj, dict):
3241
    if isinstance(obj, dict):
3242
        data = {}
3242
        data = {}