Skip to content

Commit acab351

Browse files
committed
fix officer position naming
1 parent 4f6516c commit acab351

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

src/officers/constants.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def num_active(position: str) -> int | None:
4444
"""
4545
# None means there can be any number active
4646
if (
47-
position == OfficerPosition.ExecutiveAtLarge
48-
or position == OfficerPosition.FirstYearRepresentative
47+
position == OfficerPosition.EXECUTIVE_AT_LARGE
48+
or position == OfficerPosition.FIRST_YEAR_REPRESENTATIVE
4949
):
5050
return 2
5151
elif (
52-
position == OfficerPosition.FroshWeekChair
53-
or position == OfficerPosition.SocialMediaManager
52+
position == OfficerPosition.FROSH_WEEK_CHAIR
53+
or position == OfficerPosition.SOCIAL_MEDIA_MANAGER
5454
):
5555
return None
5656
else:
@@ -62,38 +62,38 @@ def is_signer(position: str) -> bool:
6262
If the officer is a signing authority of the CSSS
6363
"""
6464
return (
65-
position == OfficerPosition.President
66-
or position == OfficerPosition.VicePresident
67-
or position == OfficerPosition.Treasurer
68-
or position == OfficerPosition.DirectorOfResources
69-
or position == OfficerPosition.DirectorOfEvents
65+
position == OfficerPosition.PRESIDENT
66+
or position == OfficerPosition.VICE_PRESIDENT
67+
or position == OfficerPosition.TREASURER
68+
or position == OfficerPosition.DIRECTOR_OF_RESOURCES
69+
or position == OfficerPosition.DIRECTOR_OF_EVENTS
7070
)
7171

7272
@staticmethod
7373
def expected_positions() -> list[str]:
7474
return [
75-
OfficerPosition.President,
76-
OfficerPosition.VicePresident,
77-
OfficerPosition.Treasurer,
78-
79-
OfficerPosition.DirectorOfResources,
80-
OfficerPosition.DirectorOfEvents,
81-
OfficerPosition.DirectorOfEducationalEvents,
82-
OfficerPosition.AssistantDirectorOfEvents,
83-
OfficerPosition.DirectorOfCommunications,
84-
#DirectorOfOutreach, # TODO: when https://github.com/CSSS/documents/pull/9/files merged
85-
OfficerPosition.DirectorOfMultimedia,
86-
OfficerPosition.DirectorOfArchives,
87-
OfficerPosition.ExecutiveAtLarge,
75+
OfficerPosition.PRESIDENT,
76+
OfficerPosition.VICE_PRESIDENT,
77+
OfficerPosition.TREASURER,
78+
79+
OfficerPosition.DIRECTOR_OF_RESOURCES,
80+
OfficerPosition.DIRECTOR_OF_EVENTS,
81+
OfficerPosition.DIRECTOR_OF_EDUCATIONAL_EVENTS,
82+
OfficerPosition.ASSISTANT_DIRECTOR_OF_EVENTS,
83+
OfficerPosition.DIRECTOR_OF_COMMUNICATIONS,
84+
#OfficerPosition.DIRECTOR_OF_OUTREACH, # TODO: when https://github.com/CSSS/documents/pull/9/files merged
85+
OfficerPosition.DIRECTOR_OF_MULTIMEDIA,
86+
OfficerPosition.DIRECTOR_OF_ARCHIVES,
87+
OfficerPosition.EXECUTIVE_AT_LARGE,
8888
# TODO: expect these only during fall & spring semesters. Also, TODO: this todo is correct...
89-
#FirstYearRepresentative,
89+
#OfficerPosition.FIRST_YEAR_REPRESENTATIVE,
9090

9191
#ElectionsOfficer,
92-
OfficerPosition.SFSSCouncilRepresentative,
93-
OfficerPosition.FroshWeekChair,
92+
OfficerPosition.SFSS_COUNCIL_REPRESENTATIVE,
93+
OfficerPosition.FROSH_WEEK_CHAIR,
9494

95-
OfficerPosition.SystemAdministrator,
96-
OfficerPosition.Webmaster,
95+
OfficerPosition.SYSTEM_ADMINISTRATOR,
96+
OfficerPosition.WEBMASTER,
9797
]
9898

9999
_EMAIL_MAP = {

0 commit comments

Comments
 (0)