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:
parent
55165cb4ce
commit
4e2eab68b0
@ -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("||"):
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user