Fixed file not found error
This commit is contained in:
		@@ -122,14 +122,11 @@ func getSchedule( lang string, routeName string ) ( *BusSchedule, error ) {
 | 
			
		||||
            return &newSch, nil
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if oldSch.Status == 0 && cs.NotExpired( 60 ) {
 | 
			
		||||
            log.Printf( "Using cache: %s", CACHE_PATH )
 | 
			
		||||
            return &oldSch, nil
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if oldSch.StatusTime.Time == newSch.StatusTime.Time {
 | 
			
		||||
            log.Printf( "Using cache: %s", CACHE_PATH )
 | 
			
		||||
            return &oldSch, nil
 | 
			
		||||
        if oldSch.Status == 0 {
 | 
			
		||||
            if cs.NotExpired( 60 ) || oldSch.StatusTime.Time == newSch.StatusTime.Time {
 | 
			
		||||
                log.Printf( "Using cache: %s", CACHE_PATH )
 | 
			
		||||
                return &oldSch, nil
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // First time + try again i times
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user