mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-22 05:45:02 +01:00
csv_metadata_quality/check.py: Format with black
This commit is contained in:
parent
cb07d357d4
commit
431e6331c8
@ -223,9 +223,7 @@ def agrovoc(field, field_name):
|
|||||||
|
|
||||||
# enable transparent request cache with thirty days expiry
|
# enable transparent request cache with thirty days expiry
|
||||||
expire_after = timedelta(days=30)
|
expire_after = timedelta(days=30)
|
||||||
requests_cache.install_cache(
|
requests_cache.install_cache("agrovoc-response-cache", expire_after=expire_after)
|
||||||
"agrovoc-response-cache", expire_after=expire_after
|
|
||||||
)
|
|
||||||
|
|
||||||
# prune old cache entries
|
# prune old cache entries
|
||||||
requests_cache.core.remove_expired_responses()
|
requests_cache.core.remove_expired_responses()
|
||||||
|
Loading…
Reference in New Issue
Block a user