1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-25 23:28:18 +01:00

Update requests-cache

Apparently we were stuck on an older version of requests-cache due
to the fact that we were using the caret, which will never update
the left-most (major) version. Upstream requests-cache is currently
version 0.6.4, and there seems to have been some changes to the API.
This commit is contained in:
Alan Orth 2021-07-06 15:24:39 +03:00
parent 55165cb4ce
commit 4e2eab68b0
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ def agrovoc(field, field_name):
) )
# prune old cache entries # prune old cache entries
requests_cache.core.remove_expired_responses() requests_cache.remove_expired_responses()
# Try to split multi-value field on "||" separator # Try to split multi-value field on "||" separator
for value in field.split("||"): for value in field.split("||"):

View File

@ -16,7 +16,7 @@ pandas = "^1.0.4"
python-stdnum = "^1.13" python-stdnum = "^1.13"
xlrd = "^1.2.0" xlrd = "^1.2.0"
requests = "^2.23.0" requests = "^2.23.0"
requests-cache = "^0.5.2" requests-cache = "~0.6.4"
pycountry = "^19.8.18" pycountry = "^19.8.18"
langid = "^1.1.6" langid = "^1.1.6"
colorama = "^0.4.4" colorama = "^0.4.4"