Data cleanup; set flight ident in response
This commit is contained in:
@@ -112,14 +112,14 @@ class Flight extends Model
|
||||
$flight_id = $this->airline->code;
|
||||
$flight_id .= $this->flight_number;
|
||||
|
||||
if (filled($this->route_code)) {
|
||||
$flight_id .= '/C'.$this->route_code;
|
||||
}
|
||||
|
||||
if (filled($this->route_leg)) {
|
||||
$flight_id .= '/L'.$this->route_leg;
|
||||
}
|
||||
|
||||
if (filled($this->route_code)) {
|
||||
$flight_id .= '/C'.$this->route_code;
|
||||
}
|
||||
|
||||
return $flight_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user