IATI / refresher

A Python application which has the responsibility of tracking IATI data from around the Web and refreshing the core IATI software's data stores
GNU Affero General Public License v3.0
2 stars 0 forks source link

add User-Agent header to download requests #111

Closed nosvalds closed 2 years ago

nosvalds commented 2 years ago

Trello

akmiller01 commented 2 years ago

Yeah this header is working well @nosvalds :

unified-iati=# select last_seen, modified, downloaded, download_error, validation_request, validation_api_error from document where id='3675c584-6b30-403c-8733-e661a70a289e';
         last_seen          |         modified          |         downloaded         | download_error | validation_request | validation_api_error 
----------------------------+---------------------------+----------------------------+----------------+--------------------+----------------------
 2022-04-11 22:56:25.440955 | 2022-04-01 01:03:47.27063 | 2022-04-14 14:09:42.440953 |                |                    |                     
(1 row)

Still troubleshooting how the frontend displayed a validation date for the file... but this is good to go.