Subversion Repositories SmartDukaan

Rev

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

Rev 16687 Rev 16688
Line 19... Line 19...
19
    response = fetchResponseUsingProxy(offer_url, proxy=False)
19
    response = fetchResponseUsingProxy(offer_url, proxy=False)
20
    input_json = json.loads(response)
20
    input_json = json.loads(response)
21
    if input_json['status'].strip()=='ok' and input_json['message'] =="Success":
21
    if input_json['status'].strip()=='ok' and input_json['message'] =="Success":
22
        offers = (input_json['payload'])['offers']
22
        offers = (input_json['payload'])['offers']
23
        for offer in offers:
23
        for offer in offers:
24
            ACTIVE_OFFERS.append(long(offer['offerId']))
24
            ACTIVE_OFFERS.append(str(offer['offerId']))
25
        for offer in offers:
25
        for offer in offers:
26
            fetchOfferDescriptionAndDump(offer)
26
            fetchOfferDescriptionAndDump(offer)
27
    
27
    
28
    
28
    
29
def fetchOfferDescriptionAndDump(offer):
29
def fetchOfferDescriptionAndDump(offer):