Skip to content

Commit

Permalink
Adjust internal bit for Approaches (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed May 22, 2024
1 parent ca2420d commit 1239617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/schemas/dfiq.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def from_yaml(cls: Type["DFIQApproach"], yaml_string: str) -> "DFIQApproach":
f"Invalid DFIQ view for approach (has to be an object): {yaml_data['view']}"
)

internal = bool(re.match(r"^Q[0-1]\d+\.0\d+$", yaml_data["id"]))
return cls(
name=yaml_data["display_name"],
description=DFIQApproachDescription(**yaml_data["description"]),
Expand All @@ -347,7 +348,7 @@ def from_yaml(cls: Type["DFIQApproach"], yaml_string: str) -> "DFIQApproach":
dfiq_tags=yaml_data.get("tags"),
contributors=yaml_data.get("contributors"),
dfiq_yaml=yaml_string,
internal=yaml_data["id"][1] == "0",
internal=internal,
)


Expand Down

0 comments on commit 1239617

Please sign in to comment.