Solving a tag creation issue

This commit is contained in:
Darmstadtium 2022-12-31 11:41:45 +01:00
parent dfe26ba8ef
commit 81c777b9f8

View File

@ -74,7 +74,7 @@ if SPECIE_LIST_PATH_IF_GBIF_METHOD == "":
specie = line.split(" ")[0] + " " + line.split(" ")[1].lower().strip()
dict_common_plants[specie] = {"Occurrence": {"leaf": 0, "flower": 0, "fruit": 0, "bark": 0}}
try: dict_common_plants[specie]["Family"] = dict_classification[specie]
except: dict_common_plants[specie]["Family"] = "Family not found"
except: dict_common_plants[specie]["Family"] = "Family_not_found"
dict_common_plants[specie]["Links"] = {"leaf": "", "flower": "", "fruit": "", "bark": ""}
dict_common_plants[specie]["Authors"] = {"leaf": "", "flower": "", "fruit": "", "bark": ""}