Subversion Repositories SmartDukaan

Rev

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

Rev 13933 Rev 13934
Line 200... Line 200...
200
            try:
200
            try:
201
                response = urllib2.urlopen(userLookupRequest).read()
201
                response = urllib2.urlopen(userLookupRequest).read()
202
                saholicUserId = json.loads(response)['account_id']
202
                saholicUserId = json.loads(response)['account_id']
203
                saholicUserAmountMap[saholicUserId] = value
203
                saholicUserAmountMap[saholicUserId] = value
204
            except:
204
            except:
205
                tprint("Could not fetch saholic id for user : " + int(key))
205
                tprint("Could not fetch saholic id for user : " + str(key))
206
                continue
206
                continue
207
        batchUpdateMap['userAmount'] = json.dumps(saholicUserAmountMap)
207
        batchUpdateMap['userAmount'] = json.dumps(saholicUserAmountMap)
208
        batchUpdateMap['batchId'] = batchId
208
        batchUpdateMap['batchId'] = batchId
209
        request = urllib2.Request(WALLET_CREDIT_URL, headers=headers)
209
        request = urllib2.Request(WALLET_CREDIT_URL, headers=headers)
210
        data = urllib.urlencode(batchUpdateMap)
210
        data = urllib.urlencode(batchUpdateMap)