Skip to content

Commit 58f4d34

Browse files
committed
clean up some todos
1 parent b679009 commit 58f4d34

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/officers/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

src/officers/crud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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] = []

src/officers/tables.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
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

src/officers/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)