File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,6 @@ def expected_positions() -> list[str]:
121121 OfficerPosition .SOCIAL_MEDIA_MANAGER : "N/A" ,
122122}
123123
124- # TODO: when an officer's start date is modified, update the end date as well if it's defined in this list
125- # a number of semesters (a semester begins on the 1st of each four month period, starting january)
126124# None, means that the length of the position does not have a set length in semesters
127125_LENGTH_MAP = {
128126 OfficerPosition .PRESIDENT : 3 ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ async def current_officers(
4242 )
4343 officer_info = (await db_session .scalars (officer_info_query )).first ()
4444 if officer_info is None :
45- # TODO: make sure there are daily checks that this data actually exists
45+ # TODO (#93) : make sure there are daily checks that this data actually exists
4646 continue
4747 elif term .position not in officer_data :
4848 officer_data [term .position ] = []
Original file line number Diff line number Diff line change 55 Date ,
66 ForeignKey ,
77 Integer ,
8- Select ,
98 String ,
109 Text ,
11- and_ ,
1210)
1311
1412# from sqlalchemy.orm import relationship
@@ -112,7 +110,7 @@ class OfficerInfo(Base):
112110 primary_key = True ,
113111 )
114112
115- # TODO: we'll need to use SFU's API to get the legal name for users
113+ # TODO (#71) : we'll need to use SFU's API to get the legal name for users
116114 legal_name = Column (String (128 ), nullable = False ) # some people have long names, you never know
117115 phone_number = Column (String (24 ), nullable = True )
118116
@@ -166,7 +164,7 @@ def is_filled_in(self):
166164
167165 def to_update_dict (self ) -> dict :
168166 return {
169- # TODO: if the API call to SFU's api to get legal name fails, we want to fail & not insert the entry.
167+ # TODO (#71) : if the API call to SFU's api to get legal name fails, we want to fail & not insert the entry.
170168 # for now, we should insert a default value
171169 "legal_name" : "default name" if self .legal_name is None else self .legal_name ,
172170
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ class OfficerTermUpload:
114114 start_date : date
115115 end_date : None | date = None
116116
117- # officer should change
117+ # officer should change:
118118 nickname : None | str = None
119119 favourite_course_0 : None | str = None
120120 favourite_course_1 : None | str = None
You can’t perform that action at this time.
0 commit comments