Skip to content

Commit

Permalink
New method to get the current cycle effective dates
Browse files Browse the repository at this point in the history
  • Loading branch information
marchchad committed Oct 16, 2020
1 parent 2174296 commit 6501f7c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ terminalProcedures.list = (icaos, options = defaultQueryOptions) => {
return listOne(icaos, options)
}

terminalProcedures.currentCycleEffectiveDates = async () => {
const response = await superagent
.get(BASE_URL)
.set('Accept', ACCEPT)

return extractEffectiveDates(cheerio.load(response.text))
}

/**
* Fetch the current diagrams distribution cycle numbers (.e.g, 1813)
*/
Expand Down

0 comments on commit 6501f7c

Please sign in to comment.