chore: Update ZG airline enum from “Groznyy Avia” to “ZIPAIR”#105
Open
dzintt wants to merge 1 commit intopunitarani:mainfrom
Open
chore: Update ZG airline enum from “Groznyy Avia” to “ZIPAIR”#105dzintt wants to merge 1 commit intopunitarani:mainfrom
ZG airline enum from “Groznyy Avia” to “ZIPAIR”#105dzintt wants to merge 1 commit intopunitarani:mainfrom
Conversation
punitarani
requested changes
Apr 1, 2026
Owner
punitarani
left a comment
There was a problem hiding this comment.
nit: let's do "Zipair" or "Zipair Tokyo" instead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the
ZGairline enum value from"Groznyy Avia"to"ZIPAIR".Why this change is needed
ZGis currently used by ZIPAIR, the Japanese low-cost carrier.Groznyy Aviais a defunct airline, and keepingZG = "Groznyy Avia"causes incorrect airline labeling in current usage.This can lead to confusion for anyone using the library with modern flight data, where flights marketed or operated by ZIPAIR may be displayed under an outdated and unrelated airline name.
What this fixes
Notes
This appears to be a stale historical mapping rather than the correct present-day airline name for
ZG.Greptile Summary
This PR corrects a stale IATA airline code mapping by updating
ZGfrom"Groznyy Avia"(a defunct Russian carrier) to"ZIPAIR"(the active Japanese low-cost carrier operated by JAL Group). The change is made consistently across both the rawdata/airlines.csvsource file and the derivedfli/models/airline.pyenum.ZGis officially assigned to ZIPAIR Tokyo (confirmed via Wikipedia, Kayak, Airhex, and avcodes.co.uk).ZGis unchanged and only the string value is updated.Confidence Score: 5/5
Safe to merge — a minimal, factually verified data correction with no logic changes.
Both changed files are updated consistently, the new value is confirmed correct by multiple authoritative IATA sources, and no code logic or API contracts are affected.
No files require special attention.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["data/airlines.csv\nZG,ZIPAIR"] -->|"Enum generated from CSV"| B["Airline enum\nZG = 'ZIPAIR'"] B -->|"Parsed by"| C["fli/core/parsers.py"] C -->|"Used in"| D["SearchFlights / SearchDates\nairlines filter"] D -->|"Returns results with"| E["FlightResult\nwith correct airline label: ZIPAIR"]Reviews (1): Last reviewed commit: "fix: update ZG code to ZIPAIR" | Re-trigger Greptile
(2/5) Greptile learns from your feedback when you react with thumbs up/down!