Subversion Repositories SmartDukaan

Rev

Rev 5278 | Rev 5482 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5278 Rev 5387
Line 76... Line 76...
76
def get_provider(provider_id):
76
def get_provider(provider_id):
77
    provider =  Provider.get_by(id=provider_id)
77
    provider =  Provider.get_by(id=provider_id)
78
    return provider
78
    return provider
79
 
79
 
80
def get_providers():
80
def get_providers():
81
    providers = Provider.query.all()
81
    providers = Provider.query.filter_by(isActive = 1).all()
82
    return providers 
82
    return providers 
83
 
83
 
84
def get_logistics_estimation(destination_pin, item_selling_price, warehouse_location=None, type=DeliveryType.PREPAID):
84
def get_logistics_estimation(destination_pin, item_selling_price, warehouse_location=None, type=DeliveryType.PREPAID):
85
    logging.info("Getting logistics estimation for pincode:" + destination_pin + " and warehouse location: " + str(warehouse_location))
85
    logging.info("Getting logistics estimation for pincode:" + destination_pin + " and warehouse location: " + str(warehouse_location))
86
    if warehouse_location is None:
86
    if warehouse_location is None: