Skip to content

Commit 59109de

Browse files
committed
update
1 parent 429c44b commit 59109de

7 files changed

+333
-653
lines changed

gen_people_page.py

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import glob
33
import random
44

5+
CURRENT_YEAR = 2024
6+
57
def read_file(fpath):
68
with open(fpath, 'r') as f:
79
content = f.read()
@@ -81,6 +83,8 @@ def get_person_html_string(id, elems, keys):
8183
elems, keys = parse_person_info(id, folder)
8284
if 'year' not in keys:
8385
continue
86+
if (int(elems['year']) < (CURRENT_YEAR - 2)):
87+
continue
8488
people_string += get_person_html_string(id, elems, keys)
8589
page_string = page_string.replace('<!-- autogen postdocs -->', '<!-- autogen postdocs -->\n' + people_string)
8690

@@ -97,6 +101,13 @@ def get_person_html_string(id, elems, keys):
97101
continue
98102
if 'program' not in keys:
99103
continue
104+
if 'MS' not in elems['program'] and 'PhD' not in elems['program']:
105+
continue
106+
if 'MS' in elems['program'] and (int(elems['year']) < (CURRENT_YEAR - 2)):
107+
continue
108+
if 'PhD' in elems['program'] and (int(elems['year']) < (CURRENT_YEAR - 7)):
109+
continue
110+
100111
people_string += get_person_html_string(id, elems, keys)
101112
page_string = page_string.replace('<!-- autogen students -->', '<!-- autogen students -->\n' + people_string)
102113

gen_research_page.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import random
44

55
MAX_PROJECTS = 24
6-
CURRENT_YEAR = 2022
6+
CURRENT_YEAR = 2024
77

88
def read_file(fpath):
99
with open(fpath, 'r') as f:
@@ -73,7 +73,7 @@ def get_project_html_string(id, elems, keys):
7373
elems, keys = parse_project_info(id, folder)
7474
if 'year' not in keys:
7575
pass
76-
if int(elems['year']) < (CURRENT_YEAR - 1):
76+
if int(elems['year']) < (CURRENT_YEAR - 2):
7777
continue
7878

7979
project_string += get_project_html_string(id, elems, keys)

0 commit comments

Comments
 (0)