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:
@@ -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."""
|
||||
from app import lib_sql_core
|
||||
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
|
||||
try:
|
||||
with lib_sql_core.engine.connect() as conn:
|
||||
|
||||
Reference in New Issue
Block a user