| Line 4... |
Line 4... |
| 4 |
@author: ashish
|
4 |
@author: ashish
|
| 5 |
'''
|
5 |
'''
|
| 6 |
from shop2020.config.client.ConfigClient import ConfigClient
|
6 |
from shop2020.config.client.ConfigClient import ConfigClient
|
| 7 |
from shop2020.model.v1.catalog.impl.Convertors import to_t_item, to_t_category, \
|
7 |
from shop2020.model.v1.catalog.impl.Convertors import to_t_item, to_t_category, \
|
| 8 |
to_t_source_item_pricing, to_t_product_notification_request, \
|
8 |
to_t_source_item_pricing, to_t_product_notification_request, \
|
| 9 |
to_t_product_notification_request_count, to_t_voucher_item_mapping, to_t_insurer, \
|
- |
|
| 10 |
to_t_banner, to_t_banner_map, to_t_product_notification_request_count, \
|
9 |
to_t_banner, to_t_banner_map, to_t_product_notification_request_count, \
|
| 11 |
to_t_voucher_item_mapping, to_t_insurer, to_t_Amazonlisted, to_t_ebay_item, \
|
10 |
to_t_voucher_item_mapping, to_t_insurer, to_t_Amazonlisted, to_t_ebay_item, \
|
| 12 |
to_t_uri_mapping, to_t_banner_list, to_t_campaign,to_t_snapdeal_item, \
|
11 |
to_t_uri_mapping, to_t_banner_list, to_t_campaign,to_t_snapdeal_item, \
|
| 13 |
to_t_snapdeal_item_details, to_t_product_feed_submit, to_t_marketplace_items, to_t_marketplace_itemprice,\
|
12 |
to_t_snapdeal_item_details, to_t_product_feed_submit, to_t_marketplace_items, to_t_marketplace_itemprice,\
|
| 14 |
to_t_marketplacepercentage
|
13 |
to_t_marketplacepercentage
|
| Line 1400... |
Line 1399... |
| 1400 |
items = get_all_marketplace_items_for_priceupdate(source)
|
1399 |
items = get_all_marketplace_items_for_priceupdate(source)
|
| 1401 |
return [to_t_marketplace_itemprice(item) for item in items]
|
1400 |
return [to_t_marketplace_itemprice(item) for item in items]
|
| 1402 |
finally:
|
1401 |
finally:
|
| 1403 |
close_session()
|
1402 |
close_session()
|
| 1404 |
|
1403 |
|
| 1405 |
def updateMarketPlacePriceUpdateStatus(self,skulist,timestamp):
|
1404 |
def updateMarketPlacePriceUpdateStatus(self,skulist,timestamp,source):
|
| 1406 |
try:
|
1405 |
try:
|
| 1407 |
update_marketplace_priceupdate_status(skulist,timestamp)
|
1406 |
update_marketplace_priceupdate_status(skulist,timestamp,source)
|
| 1408 |
finally:
|
1407 |
finally:
|
| 1409 |
close_session()
|
1408 |
close_session()
|
| 1410 |
|
1409 |
|
| 1411 |
|
1410 |
|
| 1412 |
if __name__ == '__main__':
|
1411 |
if __name__ == '__main__':
|