1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-12-22 12:12:18 +01:00

csv_metadata_quality/check.py: Reformat with black

This commit is contained in:
Alan Orth 2021-03-16 16:12:33 +02:00
parent 1aa2084230
commit ab3af2ec62
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -211,7 +211,9 @@ def agrovoc(field, field_name):
# running in an environment where we can't write to the current working di-
# rectory (for example from csv-metadata-quality-web).
REQUESTS_CACHE_DIR = os.environ.get("REQUESTS_CACHE_DIR", ".")
requests_cache.install_cache(f"{REQUESTS_CACHE_DIR}/agrovoc-response-cache", expire_after=expire_after)
requests_cache.install_cache(
f"{REQUESTS_CACHE_DIR}/agrovoc-response-cache", expire_after=expire_after
)
# prune old cache entries
requests_cache.core.remove_expired_responses()