Subversion Repositories SmartDukaan

Rev

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

Rev 3103 Rev 3144
Line 40... Line 40...
40
        return False
40
        return False
41
 
41
 
42
'''
42
'''
43
Cache the return values of the function for one hour
43
Cache the return values of the function for one hour
44
'''
44
'''
45
@memoized(3600)
45
@memoized(86400)
46
def get_logistics_estimation(destination_pin, item_selling_price, warehouse_location=None, type=DeliveryType.PREPAID):
46
def get_logistics_estimation(destination_pin, item_selling_price, warehouse_location=None, type=DeliveryType.PREPAID):
47
    if warehouse_location is None:
47
    if warehouse_location is None:
48
        try:
48
        try:
49
            warehouse_location = WarehouseAllocation.get_by(pincode = destination_pin).primary_warehouse_location
49
            warehouse_location = WarehouseAllocation.get_by(pincode = destination_pin).primary_warehouse_location
50
        except:
50
        except: