File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,17 @@ async def current_executive_team(db_session: database.DBSession, include_private
139139 # validate & warn if there are any data issues
140140 # TODO: decide whether we should enforce empty instances or force the frontend to deal with it
141141 for position in OfficerPosition .expected_positions ():
142- if position . to_string () not in officer_data :
142+ if position not in officer_data :
143143 _logger .warning (
144- f"Expected position={ position . to_string () } in response current_executive_team."
144+ f"Expected position={ position } in response current_executive_team."
145145 )
146146 elif (
147- position .num_active is not None
148- and len (officer_data [position . to_string () ]) != position .num_active
147+ OfficerPosition .num_active ( position ) is not None
148+ and len (officer_data [position ]) != OfficerPosition .num_active ( position )
149149 ):
150150 _logger .warning (
151- f"Unexpected number of { position . to_string () } entries "
152- f"({ len (officer_data [position . to_string () ])} entries) in current_executive_team response."
151+ f"Unexpected number of { position } entries "
152+ f"({ len (officer_data [position ])} entries) in current_executive_team response."
153153 )
154154
155155 return officer_data
You can’t perform that action at this time.
0 commit comments