Skip to content

IMF query improvements #9

@lpicci96

Description

@lpicci96

Opening this issue to track improvements to the api query.

At the moment the script is querying 1 country at a time for a few reasons - there is a limit on the records to query which seems to be around 15 countries per query (depending on the indicator) and querying a single country lets us track which country is problematic if the script fails. As a consequence it is timed out when run too quickly. To solve this I put the function in a while loop that tries to run the query a maximum of 9 times before failing - which seems to be working without issues.

def __query_imf(url:str) -> dict:

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions