File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,15 +211,15 @@ async def get_admins(
211211 active_stmt = select (func .count (Admin .id ))
212212 if username :
213213 active_stmt = active_stmt .where (Admin .username .ilike (f"%{ username } %" ))
214- active_stmt = active_stmt .where (Admin .is_disabled == False )
214+ active_stmt = active_stmt .where (Admin .is_disabled . is_ ( False ) )
215215 result = await db .execute (active_stmt )
216216 active = result .scalar ()
217217
218218 # Get disabled count
219219 disabled_stmt = select (func .count (Admin .id ))
220220 if username :
221221 disabled_stmt = disabled_stmt .where (Admin .username .ilike (f"%{ username } %" ))
222- disabled_stmt = disabled_stmt .where (Admin .is_disabled == True )
222+ disabled_stmt = disabled_stmt .where (Admin .is_disabled . is_ ( True ) )
223223 result = await db .execute (disabled_stmt )
224224 disabled = result .scalar ()
225225
You can’t perform that action at this time.
0 commit comments