Added a sort of alias for the enabled options. Really disabled should be the alias for "not_enabled". "not_enabled" is what is used on the frontend and has been.

This commit is contained in:
Scott Idem
2026-01-21 20:25:11 -05:00
parent e8322b4b1a
commit 329ea51487

View File

@@ -80,7 +80,7 @@ def sql_enable_part(table_name: str, enabled: str) -> tuple[str, bool|None]:
"""Handles enabled/disabled status filtering with schema check.""" """Handles enabled/disabled status filtering with schema check."""
from app import lib_sql_core from app import lib_sql_core
if not table_name: return '', None if not table_name: return '', None
if enabled in ['enabled', 'disabled', 'all']: if enabled in ['enabled', 'disabled', 'not_enabled', 'all']:
if enabled == 'all': return '', None if enabled == 'all': return '', None
try: try:
with lib_sql_core.engine.connect() as conn: with lib_sql_core.engine.connect() as conn: