From 9c80743182cf1601d2087e9f6bd03b8848bd6929 Mon Sep 17 00:00:00 2001 From: Adriano Rutz Date: Mon, 20 Nov 2023 16:44:34 +0100 Subject: [PATCH] Adding note (see https://www.wikidata.org/w/index.php?title=Q2724976&diff=prev&oldid=2014795433) --- update/download_taxonomy_parenting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update/download_taxonomy_parenting.py b/update/download_taxonomy_parenting.py index 06f5e74..0debf24 100644 --- a/update/download_taxonomy_parenting.py +++ b/update/download_taxonomy_parenting.py @@ -58,6 +58,8 @@ def run(root: Path, retry: int = 5) -> None: else: raise TimeoutError("Failed to download taxonomy step 1 tum tum tum....") + # TODO This part is sensitive to vandalism if someone introduces "," in taxon name. + # Could be let this way to force cleaning, or not. list_of_couples = [x.strip().split(",") for x in t.split("\n")[1:] if x != ""] taxon_direct_parents = {} taxon_names = {}