Subversion Repositories SmartDukaan

Rev

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

Rev 16598 Rev 16599
Line 40... Line 40...
40
    ACTIVE_OFFERS.append(offer['offerId']) 
40
    ACTIVE_OFFERS.append(offer['offerId']) 
41
    for app_offer in single_app_offers:
41
    for app_offer in single_app_offers:
42
        if app_offer.affiliate_offer_id == offer['offerId']:
42
        if app_offer.affiliate_offer_id == offer['offerId']:
43
            app_offer.offer_price = float(offer['offerPrice'])
43
            app_offer.offer_price = float(offer['offerPrice'])
44
            app_offer.show = True
44
            app_offer.show = True
45
            app_offer.user_payout = .8 * app_offer.offer_price
45
            app_offer.user_payout = round(.64 * app_offer.offer_price,0)
46
            app_offer.description = input_json.get('description')
46
            app_offer.description = input_json.get('description')
47
            app_offer.shortDescription = offer.get('shortDesc')
47
            app_offer.shortDescription = offer.get('shortDesc')
48
            app_offer.longDescription = offer.get('longDesc')
48
            app_offer.longDescription = offer.get('longDesc')
49
            app_offer.link = offer.get('url')
49
            app_offer.link = offer.get('url')
50
            app_offer.offerCategory = offer.get('offerCategory')
50
            app_offer.offerCategory = offer.get('offerCategory')
Line 60... Line 60...
60
            app_offerObj.affiliate_offer_id = offer['offerId']
60
            app_offerObj.affiliate_offer_id = offer['offerId']
61
            try:
61
            try:
62
                app_offerObj.offer_price = float(offer['offerPrice'])
62
                app_offerObj.offer_price = float(offer['offerPrice'])
63
            except:
63
            except:
64
                app_offerObj.offer_price = 0.0
64
                app_offerObj.offer_price = 0.0
65
            app_offerObj.user_payout = .8 * app_offer.offer_price
65
            app_offerObj.user_payout = round(.64 * app_offer.offer_price,0)
66
            app_offerObj.override_payout = False
66
            app_offerObj.override_payout = False
67
            app_offerObj.overriden_payout = 0.0
67
            app_offerObj.overriden_payout = 0.0
68
            app_offerObj.app_name = offer.get('appName')
68
            app_offerObj.app_name = offer.get('appName')
69
            app_offerObj.package_name = offer.get('packageName')
69
            app_offerObj.package_name = offer.get('packageName')
70
            app_offerObj.description = input_json.get('description')
70
            app_offerObj.description = input_json.get('description')