| Line 54... |
Line 54... |
| 54 |
search_snapdeal_items , get_count_for_snapdeal_items , get_snapdeal_search_result_count, \
|
54 |
search_snapdeal_items , get_count_for_snapdeal_items , get_snapdeal_search_result_count, \
|
| 55 |
get_active_banners_for_mobile_site, get_preffered_insurer_for_item, get_snapdealitem_by_skuatsnapdeal, \
|
55 |
get_active_banners_for_mobile_site, get_preffered_insurer_for_item, get_snapdealitem_by_skuatsnapdeal, \
|
| 56 |
get_product_feed_submit, add_product_feed_submit, update_product_feed_submit, \
|
56 |
get_product_feed_submit, add_product_feed_submit, update_product_feed_submit, \
|
| 57 |
delete_product_feed_submit, get_all_product_feed_submit, get_snapdeal_item_detail,\
|
57 |
delete_product_feed_submit, get_all_product_feed_submit, get_snapdeal_item_detail,\
|
| 58 |
get_marketplace_details_for_item, update_marketplace_attributes_for_item,\
|
58 |
get_marketplace_details_for_item, update_marketplace_attributes_for_item,\
|
| 59 |
get_costing_for_marketplace, get_all_marketplace_items_for_priceupdate, update_marketplace_priceupdate_status,\
|
59 |
get_costing_for_marketplace, get_all_marketplace_items_for_priceupdate, update_marketplace_priceupdate_status, \
|
| 60 |
update_item_hold_inventory
|
60 |
update_item_hold_inventory, update_nlc_at_marketplaces
|
| 61 |
|
- |
|
| 62 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
61 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| 63 |
from shop2020.utils.Utils import log_entry, to_py_date
|
62 |
from shop2020.utils.Utils import log_entry, to_py_date
|
| 64 |
import datetime
|
63 |
import datetime
|
| 65 |
|
64 |
|
| 66 |
class CatalogServiceHandler:
|
65 |
class CatalogServiceHandler:
|
| Line 1405... |
Line 1404... |
| 1405 |
def updateMarketPlacePriceUpdateStatus(self,skulist,timestamp,source):
|
1404 |
def updateMarketPlacePriceUpdateStatus(self,skulist,timestamp,source):
|
| 1406 |
try:
|
1405 |
try:
|
| 1407 |
update_marketplace_priceupdate_status(skulist,timestamp,source)
|
1406 |
update_marketplace_priceupdate_status(skulist,timestamp,source)
|
| 1408 |
finally:
|
1407 |
finally:
|
| 1409 |
close_session()
|
1408 |
close_session()
|
| 1410 |
|
1409 |
|
| 1411 |
|
- |
|
| 1412 |
def updateItemHoldInventory(self,itemHoldMap):
|
1410 |
def updateItemHoldInventory(self,itemHoldMap):
|
| 1413 |
try:
|
1411 |
try:
|
| 1414 |
update_item_hold_inventory(itemHoldMap)
|
1412 |
update_item_hold_inventory(itemHoldMap)
|
| 1415 |
finally:
|
1413 |
finally:
|
| 1416 |
close_session()
|
1414 |
close_session()
|
| 1417 |
|
1415 |
|
| - |
|
1416 |
def updateNlcAtMarketplaces(self,item_id,vendor_id,nlc):
|
| - |
|
1417 |
try:
|
| - |
|
1418 |
update_nlc_at_marketplaces(item_id,vendor_id,nlc)
|
| - |
|
1419 |
finally:
|
| - |
|
1420 |
close_session()
|
| - |
|
1421 |
|
| 1418 |
if __name__ == '__main__':
|
1422 |
if __name__ == '__main__':
|
| 1419 |
items = get_all_alive_items()
|
1423 |
items = get_all_alive_items()
|
| 1420 |
ret_items = []
|
1424 |
ret_items = []
|
| 1421 |
for item in items:
|
1425 |
for item in items:
|
| 1422 |
if item:
|
1426 |
if item:
|