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

csv_metadata_quality/check.py: Format with black

This commit is contained in:
Alan Orth 2020-07-06 14:10:19 +03:00
parent cb07d357d4
commit 431e6331c8
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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()