| Line 89... |
Line 89... |
| 89 |
app_offer.ratings = offer.get('appRating')
|
89 |
app_offer.ratings = offer.get('appRating')
|
| 90 |
app_offer.downloads = offer.get('appDownloads')
|
90 |
app_offer.downloads = offer.get('appDownloads')
|
| 91 |
app_offer.image_url = offer.get('iconUrl')
|
91 |
app_offer.image_url = offer.get('iconUrl')
|
| 92 |
app_offer.appmaster_id = appMasterId
|
92 |
app_offer.appmaster_id = appMasterId
|
| 93 |
app_offer.offer_active = True
|
93 |
app_offer.offer_active = True
|
| - |
|
94 |
app_offer.location = offer.get('location')
|
| 94 |
existingAppOffer = app_offers.query.filter(app_offers.affiliate_id==AFFILIATE_ID).filter(app_offers.package_name==offer['packageName']).filter(app_offers.show==True).first()
|
95 |
existingAppOffer = app_offers.query.filter(app_offers.affiliate_id==AFFILIATE_ID).filter(app_offers.package_name==offer['packageName']).filter(app_offers.show==True).first()
|
| 95 |
|
96 |
|
| 96 |
if existingAppOffer is None:
|
97 |
if existingAppOffer is None:
|
| 97 |
app_offer.show = True
|
98 |
app_offer.show = True
|
| 98 |
else:
|
99 |
else:
|
| Line 121... |
Line 122... |
| 121 |
app_offer.promoImage = input_json.get('promoImage')
|
122 |
app_offer.promoImage = input_json.get('promoImage')
|
| 122 |
app_offer.ratings = offer.get('appRating')
|
123 |
app_offer.ratings = offer.get('appRating')
|
| 123 |
app_offer.downloads = offer.get('appDownloads')
|
124 |
app_offer.downloads = offer.get('appDownloads')
|
| 124 |
app_offer.image_url = offer.get('iconUrl')
|
125 |
app_offer.image_url = offer.get('iconUrl')
|
| 125 |
app_offer.offer_active = True
|
126 |
app_offer.offer_active = True
|
| - |
|
127 |
app_offer.location = offer.get('location')
|
| 126 |
existingAppOffer = app_offers.query.filter(app_offers.affiliate_id==AFFILIATE_ID).filter(app_offers.package_name==offer['packageName']).filter(app_offers.show==True).first()
|
128 |
existingAppOffer = app_offers.query.filter(app_offers.affiliate_id==AFFILIATE_ID).filter(app_offers.package_name==offer['packageName']).filter(app_offers.show==True).first()
|
| 127 |
if existingAppOffer is None:
|
129 |
if existingAppOffer is None:
|
| 128 |
app_offer.show = True
|
130 |
app_offer.show = True
|
| 129 |
else:
|
131 |
else:
|
| 130 |
if existingAppOffer.affiliate_offer_id not in ACTIVE_OFFERS:
|
132 |
if existingAppOffer.affiliate_offer_id not in ACTIVE_OFFERS:
|