From 451bb93e761c226f2b12b12272133afab75ea297 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Mon, 17 Jul 2023 14:32:10 +0200 Subject: [PATCH] Remove places where the flag influences "hidden" status --- followthemoney/property.py | 2 +- followthemoney/schema.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/followthemoney/property.py b/followthemoney/property.py index 76c96f1d7..13e09544a 100644 --- a/followthemoney/property.py +++ b/followthemoney/property.py @@ -91,7 +91,7 @@ def __init__(self, schema: "Schema", name: str, data: PropertySpec) -> None: self.deprecated = as_bool(data.get("deprecated", False)) #: This property should not be shown or mentioned in the user interface. - self.hidden = as_bool(data.get("hidden", self.deprecated)) + self.hidden = as_bool(data.get("hidden")) type_ = data.get("type", "string") if type_ is None or type_ not in registry.named: diff --git a/followthemoney/schema.py b/followthemoney/schema.py index 85d2c20d1..60c2c5568 100644 --- a/followthemoney/schema.py +++ b/followthemoney/schema.py @@ -137,7 +137,7 @@ def __init__(self, model: "Model", name: str, data: SchemaSpec) -> None: #: Hide this schema in listings. self.hidden = as_bool(data.get("hidden"), False) - self.hidden = self.hidden and not self.abstract and not self.deprecated + self.hidden = self.hidden and not self.abstract #: Entities with this type are generated by the system - for example, via #: `ingest-file`. The user should not be offered an option to create them