Beispiel #1
0
def refresh_routes(request,**field):
    api=gds_api.Gds_Api() 
    response=api.RMS_GET_ROUTE_LIST(**field)      
    if "Table1" in response and len(response["Table1"])>0:
        inactive_count=response["Table1"][0]["INACTIVE"]
        print inactive_count
        if inactive_count >0 and inactive_count<=100:
            #activating inactive routes
            api.RMS_REFRESH_INACTIVE_ROUTE(**field)
    ## Deleting cache    
    delete_search_routes(response["Table"])
    return response
Beispiel #2
0
def service_refresh_route_pickups(request,**field):
    api=gds_api.Gds_Api() 
    response=api.RMS_GET_ROUTES_PICKUP(**field)          
    ## Deleting cache    
    delete_search_routes(response["Table"])
    return response
Beispiel #3
0
def refresh_new_routes(request,**field):
    api=gds_api.Gds_Api() 
    response=api.RMS_GET_NEW_ROUTE_LIST(**field)          
    ## Deleting cache    
    delete_search_routes(response["Table"])
    return response