Skip to content

Commit 8e7b240

Browse files
committed
remove comment
1 parent 3ef249f commit 8e7b240

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/officers/crud.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ async def all_officer_data(
189189

190190
return officer_data_list
191191

192-
async def create_new_officer_info(db_session: database.DBSession, new_officer_info: OfficerInfo) -> bool:
192+
async def create_new_officer_info(
193+
db_session: database.DBSession,
194+
new_officer_info: OfficerInfo
195+
) -> bool:
193196
"""
194197
Return False if the officer already exists
195198
"""
@@ -205,13 +208,13 @@ async def create_new_officer_info(db_session: database.DBSession, new_officer_in
205208
db_session.add(new_officer_info)
206209
return True
207210

208-
# TODO: implement this for patch term as well
209211
async def create_new_officer_term(
210212
db_session: database.DBSession,
211213
new_officer_term: OfficerTerm
212214
):
213-
if new_officer_term.position not in OfficerPosition.position_list():
214-
raise HTTPException(status_code=500)
215+
# TODO: does this check need to be here?
216+
# if new_officer_term.position not in OfficerPosition.position_list():
217+
# raise HTTPException(status_code=500)
215218

216219
position_length = OfficerPosition.length_in_semesters(new_officer_term.position)
217220
if position_length is not None:

src/officers/tables.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def sql_is_filled_in(query: Select) -> Select:
9898
)
9999
)
100100

101-
102101
def to_update_dict(self) -> dict:
103102
return {
104103
# TODO: do we want computing_id to be changeable?

src/officers/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def validate(self):
6767
elif self.end_date is not None and self.start_date > self.end_date:
6868
raise HTTPException(status_code=400, detail="end_date must be after start_date")
6969

70-
7170
def to_officer_term(self, term_id: str, computing_id:str) -> OfficerTerm:
7271
# TODO: many positions have a length; if the length is defined, fill it in right here
7372
# (end date is 1st of month, 12 months after start date's month).

0 commit comments

Comments
 (0)