Skip to content

Commit 0b7bb9f

Browse files
committed
fix: correctly add undergrads to CV (not grad section)
The condition 'grad in role_lower' was matching 'undergrad'. Now checks 'undergrad not in role_lower' before matching grad. Also fixed Theo Larson's CV entry (moved to Undergraduate Advisees).
1 parent 7891684 commit 0b7bb9f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

documents/JRM_CV.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,6 @@ \subsection*{Mentorship (selected)}
659659

660660
\textit{Graduate Advisees}:
661661
\begin{etaremune}
662-
\item Theo Larson (Doctoral student; 2026 -- )
663662
\item Claudia Gonciulea (Doctoral student; 2025 -- )
664663
\item Paxton Fitzpatrick (Doctoral student; 2021 -- )
665664
\item Xinming Xu (Doctoral student; 2021 -- )
@@ -734,6 +733,7 @@ \subsection*{Mentorship (selected)}
734733
(*)}
735734
\begin{multicols}{2}
736735
\begin{etaremune}
736+
\item Theo Larson (2026 -- )
737737
\item Aidan Miller (2025 -- )
738738
\item Alishba Tahir (2025 -- )
739739
\item Azaire Andre (2025 -- )

scripts/onboard_member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def add_to_cv(cv_path: Path, name: str, role: str, year: str) -> bool:
942942
r"(\\textit\{Postdoctoral Advisees\}:\s*\n\\begin\{etaremune\})"
943943
)
944944
entry = f"\\item {name} ({year} -- )"
945-
elif "grad" in role_lower:
945+
elif "grad" in role_lower and "undergrad" not in role_lower:
946946
section_pattern = r"(\\textit\{Graduate Advisees\}:\s*\n\\begin\{etaremune\})"
947947
entry = f"\\item {name} (Doctoral student; {year} -- )"
948948
else:

0 commit comments

Comments
 (0)