| Line 71... |
Line 71... |
| 71 |
app_offer.promoImage = input_json.get('promoImage')
|
71 |
app_offer.promoImage = input_json.get('promoImage')
|
| 72 |
app_offer.ratings = offer.get('appRating')
|
72 |
app_offer.ratings = offer.get('appRating')
|
| 73 |
app_offer.downloads = offer.get('appDownloads')
|
73 |
app_offer.downloads = offer.get('appDownloads')
|
| 74 |
app_offer.image_url = offer.get('iconUrl')
|
74 |
app_offer.image_url = offer.get('iconUrl')
|
| 75 |
app_offer.appmaster_id = appMasterId
|
75 |
app_offer.appmaster_id = appMasterId
|
| - |
|
76 |
app_offer.offer_active = True
|
| 76 |
existingAppOffer = app_offers.query.filter(app_offers.affiliate_id==AFFILIATE_ID).filter(app_offers.package_name==offer['packageName']).filter(app_offers.show==True).first()
|
77 |
existingAppOffer = app_offers.query.filter(app_offers.affiliate_id==AFFILIATE_ID).filter(app_offers.package_name==offer['packageName']).filter(app_offers.show==True).first()
|
| 77 |
|
78 |
|
| 78 |
if existingAppOffer is None:
|
79 |
if existingAppOffer is None:
|
| 79 |
app_offer.show = True
|
80 |
app_offer.show = True
|
| 80 |
app_offer.offer_active = True
|
81 |
app_offer.offer_active = True
|