amtgard / ORK3

Version 3 of the Online Record Keeper
Other
23 stars 12 forks source link

Abbreviated search with park should only consider abbreviated kingdom #251

Closed kenwalker closed 4 years ago

kenwalker commented 4 years ago

Currently there are 3 parks with the abbreviation "AW". If you try to search in Annwyn in Goldenvale using the abbreviations it does not work because the magic_search function looks up kingdom by abbreviation, then park by abbreviation and performs the query with those two. In this case, Astral Winds (also AW) park ID is returned. So the SQL query with GV and AW together returns nothing. Suggestion is to make another function to limit the abbreviation search for parks to a specific kingdom. PR incoming.