Subversion Repositories SmartDukaan

Rev

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

Rev 19482 Rev 19485
Line 3231... Line 3231...
3231
 
3231
 
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):
-
 
3237
    cursor = list(get_mongo_connection().Dtr.crmrefundwallet.find({"batchId":batchId}))
-
 
3238
    return cursor
-
 
3239
 
3236
def todict(obj, classkey=None):
3240
def todict(obj, classkey=None):
3237
    if isinstance(obj, dict):
3241
    if isinstance(obj, dict):
3238
        data = {}
3242
        data = {}
3239
        for (k, v) in obj.items():
3243
        for (k, v) in obj.items():
3240
            data[k] = todict(v, classkey)
3244
            data[k] = todict(v, classkey)