| Line 6... |
Line 6... |
| 6 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo,\
|
6 |
from shop2020.thriftpy.logistics.ttypes import LogisticsInfo,\
|
| 7 |
LogisticsServiceException, DeliveryType
|
7 |
LogisticsServiceException, DeliveryType
|
| 8 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB,\
|
8 |
from shop2020.logistics.service.impl.DataAccessor import get_empty_AWB,\
|
| 9 |
get_shipment_info, initialize, get_logistics_estimation, get_provider,\
|
9 |
get_shipment_info, initialize, get_logistics_estimation, get_provider,\
|
| 10 |
get_providers, close_session, get_free_awb_count, get_holidays,\
|
10 |
get_providers, close_session, get_free_awb_count, get_holidays,\
|
| 11 |
is_alive, get_provider_for_pickup_type
|
11 |
is_alive, get_provider_for_pickup_type, get_pickup_store, get_all_pickup_stores
|
| 12 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate,\
|
12 |
from shop2020.logistics.service.impl.Converters import to_t_awbupdate,\
|
| 13 |
to_t_provider
|
13 |
to_t_provider
|
| 14 |
from shop2020.clients.CatalogClient import CatalogClient
|
14 |
from shop2020.clients.CatalogClient import CatalogClient
|
| 15 |
from shop2020.config.client.ConfigClient import ConfigClient
|
15 |
from shop2020.config.client.ConfigClient import ConfigClient
|
| 16 |
import datetime
|
16 |
import datetime
|
| Line 270... |
Line 270... |
| 270 |
elif item.itemStatus == status.PAUSED_BY_RISK:
|
270 |
elif item.itemStatus == status.PAUSED_BY_RISK:
|
| 271 |
estimateList.append((2, estimationInfo.deliveryTime, item.id))
|
271 |
estimateList.append((2, estimationInfo.deliveryTime, item.id))
|
| 272 |
|
272 |
|
| 273 |
estimateList.sort()
|
273 |
estimateList.sort()
|
| 274 |
|
274 |
|
| 275 |
return [estimate[-1] for estimate in estimateList]
|
- |
|
| 276 |
|
275 |
return [estimate[-1] for estimate in estimateList]
|
| - |
|
276 |
|
| - |
|
277 |
|
| - |
|
278 |
def getAllPickupStores(self, ):
|
| - |
|
279 |
return [to_t_pickup_store(pickup_store) for pickup_store in get_all_pickup_stores()]
|
| - |
|
280 |
|
| - |
|
281 |
def getPickupStore(self, storeId):
|
| - |
|
282 |
"""
|
| - |
|
283 |
Parameters:
|
| - |
|
284 |
- storeId
|
| - |
|
285 |
"""
|
| - |
|
286 |
return to_t_pickup_store(get_pickup_store(storeId))
|
| - |
|
287 |
|
| 277 |
|
288 |
|