summaryrefslogtreecommitdiffstats
path: root/src/schema.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/schema.rs b/src/schema.rs
index 0a25332..aa4bb60 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -109,6 +109,8 @@ pub(crate) struct Team {
name: String,
#[serde(default = "default_false")]
wg: bool,
+ #[serde(default = "default_false")]
+ marker_team: bool,
subteam_of: Option<String>,
people: TeamPeople,
#[serde(default)]
@@ -129,6 +131,10 @@ impl Team {
self.wg
}
+ pub(crate) fn is_marker_team(&self) -> bool {
+ self.marker_team
+ }
+
pub(crate) fn subteam_of(&self) -> Option<&str> {
self.subteam_of.as_ref().map(|s| s.as_str())
}
@@ -160,7 +166,7 @@ impl Team {
}
if self.people.include_all_team_members {
for team in data.teams() {
- if team.is_wg() || team.name == self.name {
+ if team.is_wg() || team.is_marker_team() || team.name == self.name {
continue;
}
for member in team.members(data)? {