Open Zethson opened 1 month ago
In such cases
# inspect from public (bionty only)
if hasattr(registry, "public"):
verbosity = settings.verbosity
try:
settings.verbosity = "error"
public_records = registry.from_values(
non_validated,
field=field,
**kwargs_current,
)
values_validated += [getattr(r, field.field.name) for r in public_records]
finally:
settings.verbosity = verbosity
validated_hint_print = validated_hint_print or f".add_validated_from('{key}')"
n_validated = len(values_validated)
if n_validated > 0:
_log_mapping_info()
logger.warning(
f"found {colors.yellow(n_validated)} validated terms: "
f"{colors.yellow(', '.join(values_validated[:10]) + ', ...' if len(values_validated) > 10 else ', '.join(values_validated))}\n → save terms via "
f"{colors.yellow(validated_hint_print)}"
)
n_validated
is apparently always 0. Hmm
Could you investigate why n_validated
is 0? Is it because the default source isn't mondo?
Report
I expected this to also print the successfully validated terms.
Version information
No response