Skip to content

Commit 43b65b3

Browse files
Refactor inline marker validation logic
1 parent deffa14 commit 43b65b3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/headhunter/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ def __post_init__(self) -> None:
6363
msg = f"Invalid case: {self.case}"
6464
logger.error(msg)
6565
raise ValueError(msg)
66-
if self.is_inline and self.marker not in ("*", "column"):
66+
if (
67+
self.is_inline
68+
and not self.is_extracted
69+
and self.marker not in ("*", "column")
70+
):
6771
msg = "Only asterisk or column headings can be inline"
6872
logger.error(msg)
6973
raise ValueError(msg)

0 commit comments

Comments
 (0)