| Line 57... |
Line 57... |
| 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, update_nlc_at_marketplaces, get_all_flipkart_items, get_flipkart_item, \
|
60 |
update_item_hold_inventory, update_nlc_at_marketplaces, get_all_flipkart_items, get_flipkart_item, \
|
| 61 |
add_or_update_flipkart_item, get_flipkart_item_detail, get_flipkart_items, search_flipkart_items, \
|
61 |
add_or_update_flipkart_item, get_flipkart_item_detail, get_flipkart_items, search_flipkart_items, \
|
| 62 |
get_count_for_flipkart_items, get_flipkart_search_result_count, get_all_fk_items
|
62 |
get_count_for_flipkart_items, get_flipkart_search_result_count, get_all_fk_items, get_flipkart_item_by_sku_at_flipkart
|
| 63 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
63 |
from shop2020.thriftpy.model.v1.catalog.ttypes import status
|
| 64 |
from shop2020.utils.Utils import log_entry, to_py_date
|
64 |
from shop2020.utils.Utils import log_entry, to_py_date
|
| 65 |
import datetime
|
65 |
import datetime
|
| 66 |
|
66 |
|
| 67 |
class CatalogServiceHandler:
|
67 |
class CatalogServiceHandler:
|
| Line 1479... |
Line 1479... |
| 1479 |
try:
|
1479 |
try:
|
| 1480 |
return [to_t_flipkart_item_details(item,None) for item in get_all_fk_items()]
|
1480 |
return [to_t_flipkart_item_details(item,None) for item in get_all_fk_items()]
|
| 1481 |
finally:
|
1481 |
finally:
|
| 1482 |
close_session()
|
1482 |
close_session()
|
| 1483 |
|
1483 |
|
| - |
|
1484 |
def getFlipkartItemBySkyAtFlipkart(self,sku):
|
| - |
|
1485 |
return to_t_flipkart_item(get_flipkart_item_by_sku_at_flipkart(sku))
|
| - |
|
1486 |
|
| 1484 |
if __name__ == '__main__':
|
1487 |
if __name__ == '__main__':
|
| 1485 |
items = get_all_alive_items()
|
1488 |
items = get_all_alive_items()
|
| 1486 |
ret_items = []
|
1489 |
ret_items = []
|
| 1487 |
for item in items:
|
1490 |
for item in items:
|
| 1488 |
if item:
|
1491 |
if item:
|