mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-25 23:28:18 +01:00
csv_metadata_quality/check.py: Reformat with black
This commit is contained in:
parent
1aa2084230
commit
ab3af2ec62
@ -211,7 +211,9 @@ def agrovoc(field, field_name):
|
|||||||
# running in an environment where we can't write to the current working di-
|
# running in an environment where we can't write to the current working di-
|
||||||
# rectory (for example from csv-metadata-quality-web).
|
# rectory (for example from csv-metadata-quality-web).
|
||||||
REQUESTS_CACHE_DIR = os.environ.get("REQUESTS_CACHE_DIR", ".")
|
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
|
# prune old cache entries
|
||||||
requests_cache.core.remove_expired_responses()
|
requests_cache.core.remove_expired_responses()
|
||||||
|
Loading…
Reference in New Issue
Block a user