djrscally / pubg_reporting

Tools to create and maintain a reporting db syncing to the pubg API
GNU General Public License v3.0
2 stars 1 forks source link

Fixing rate limits #22

Closed djrscally closed 4 years ago

djrscally commented 4 years ago

Added a new function dedicated to handling the calls to the API. Switched all the other functions to call that to get their data. The new function checks the rate limit response headers to decide whether it needs to wait, and waits until the reset time listed in the headers (plus a 5s buffer) - hopefully this will prevent any more of this rate limiting nonsense.

Oh, also puts the log file in the config file path now.

closes #21