| Line 628... |
Line 628... |
| 628 |
if promoOffer is not None:
|
628 |
if promoOffer is not None:
|
| 629 |
offer = get_mongo_connection().Catalog.Promotions.find_one({'_id':promoOffer.get('offer_id')})
|
629 |
offer = get_mongo_connection().Catalog.Promotions.find_one({'_id':promoOffer.get('offer_id')})
|
| 630 |
if offer is None:
|
630 |
if offer is None:
|
| 631 |
raise
|
631 |
raise
|
| 632 |
promo = Promotion(offer.get('offer_id'),offer.get('offer_name'),offer.get('offer_description') , offer.get('categories_applicable'), offer.get('sub_categories_not_applicable'),
|
632 |
promo = Promotion(offer.get('offer_id'),offer.get('offer_name'),offer.get('offer_description') , offer.get('categories_applicable'), offer.get('sub_categories_not_applicable'),
|
| 633 |
offer.get('startDate'), offer.get('endDate'), promoOffer.get('target1'), promoOffer.get('target1_cash_back_percetage'), promoOffer.get('target2'), promoOffer.get('target2_cash_back_percetage'), promoOffer.get('maxCashBack'),offer.get('url'))
|
633 |
offer.get('startDate'), offer.get('endDate'), promoOffer.get('target1'), promoOffer.get('target1_cash_back_percetage'), promoOffer.get('target2'), promoOffer.get('target2_cash_back_percetage'), promoOffer.get('maxCashBack'),offer.get('url'),
|
| - |
|
634 |
promoOffer.get('pending_order_value'), promoOffer.get('delivered_order_value'))
|
| 634 |
|
635 |
|
| 635 |
specialOffer = promo
|
636 |
specialOffer = promo
|
| 636 |
except:
|
637 |
except:
|
| 637 |
pass
|
638 |
pass
|
| 638 |
|
639 |
|
| Line 2706... |
Line 2707... |
| 2706 |
if promoOffer is not None:
|
2707 |
if promoOffer is not None:
|
| 2707 |
offer = get_mongo_connection().Catalog.Promotions.find_one({'_id':promoOffer.get('offer_id')})
|
2708 |
offer = get_mongo_connection().Catalog.Promotions.find_one({'_id':promoOffer.get('offer_id')})
|
| 2708 |
if offer is None:
|
2709 |
if offer is None:
|
| 2709 |
raise
|
2710 |
raise
|
| 2710 |
promo = Promotion(offer.get('offer_id'),offer.get('offer_name'),offer.get('offer_description') , offer.get('categories_applicable'), offer.get('sub_categories_not_applicable'),
|
2711 |
promo = Promotion(offer.get('offer_id'),offer.get('offer_name'),offer.get('offer_description') , offer.get('categories_applicable'), offer.get('sub_categories_not_applicable'),
|
| 2711 |
offer.get('startDate'), offer.get('endDate'), promoOffer.get('target1'), promoOffer.get('target1_cash_back_percetage'), promoOffer.get('target2'), promoOffer.get('target2_cash_back_percetage'), promoOffer.get('maxCashBack'), offer.get('url'))
|
2712 |
offer.get('startDate'), offer.get('endDate'), promoOffer.get('target1'), promoOffer.get('target1_cash_back_percetage'), promoOffer.get('target2'), promoOffer.get('target2_cash_back_percetage'), promoOffer.get('maxCashBack'), offer.get('url'),
|
| - |
|
2713 |
promoOffer.get('pending_order_value'), promoOffer.get('delivered_order_value'))
|
| 2712 |
|
2714 |
|
| 2713 |
specialOffer = promo.__dict__
|
2715 |
specialOffer = promo.__dict__
|
| 2714 |
except:
|
2716 |
except:
|
| 2715 |
pass
|
2717 |
pass
|
| 2716 |
return specialOffer
|
2718 |
return specialOffer
|