3434from textual .worker import get_current_worker
3535
3636from edge_containers_cli .cmds .commands import Commands
37- from edge_containers_cli .definitions import ECLogLevels , emoji
37+ from edge_containers_cli .definitions import ECLogLevels , Emoji
3838from edge_containers_cli .logging import log
3939
4040
@@ -239,7 +239,7 @@ def __init__(self, commands, running_only: bool) -> None:
239239 self ._indicator_lock = threading .Lock ()
240240 self ._service_indicators = {
241241 "name" : ["" ],
242- emoji .exclaim : ["" ],
242+ Emoji .exclaim : ["" ],
243243 }
244244 iocs_df = self ._get_services_df (self .running_only )
245245 self .columns = iocs_df .columns
@@ -289,8 +289,8 @@ def _get_services_df(self, running_only):
289289 services_df = self .commands ._get_services (running_only ) # noqa: SLF001
290290 services_df = services_df .with_columns (
291291 polars .when (polars .col ("ready" ))
292- .then (polars .lit (emoji .check_mark ))
293- .otherwise (polars .lit (emoji .cross_mark ))
292+ .then (polars .lit (Emoji .check_mark ))
293+ .otherwise (polars .lit (Emoji .cross_mark ))
294294 .alias ("ready" )
295295 )
296296 indicators_df = polars .DataFrame (self ._service_indicators )
@@ -305,10 +305,10 @@ def update_indicator_threadsafe(self, name: str, indicator: str):
305305 with self ._indicator_lock :
306306 if name in self ._service_indicators ["name" ]:
307307 index = self ._service_indicators ["name" ].index (name )
308- self ._service_indicators [emoji .exclaim ][index ] = indicator
308+ self ._service_indicators [Emoji .exclaim ][index ] = indicator
309309 else :
310310 self ._service_indicators ["name" ].append (name )
311- self ._service_indicators [emoji .exclaim ].append (indicator )
311+ self ._service_indicators [Emoji .exclaim ].append (indicator )
312312
313313 def watch_sort_column_id (self , sort_column_id : str ) -> None :
314314 """Called when the sort_column_id attribute changes."""
@@ -479,9 +479,9 @@ def _do_confirmed_action(self, action: str, command: Callable):
479479
480480 def do_task (command , service_name ):
481481 def _do_task ():
482- table .update_indicator_threadsafe (service_name , emoji .road_works )
482+ table .update_indicator_threadsafe (service_name , Emoji .road_works )
483483 command (service_name )
484- table .update_indicator_threadsafe (service_name , emoji .none )
484+ table .update_indicator_threadsafe (service_name , Emoji .none )
485485 self .busy_services .remove (service_name )
486486
487487 return _do_task
@@ -496,7 +496,7 @@ def after_dismiss_callback(start: bool | None) -> None:
496496 log .info (f"Scheduled: { action } { service_name } " )
497497 self .busy_services .add (service_name )
498498 table .update_indicator_threadsafe (
499- service_name , emoji .hour_glass
499+ service_name , Emoji .hour_glass
500500 )
501501 self ._queue .put (do_task (command , service_name ))
502502
@@ -523,7 +523,7 @@ def action_ioc_logs(self) -> None:
523523 """Display the logs of the IOC that is currently highlighted."""
524524 if service_name := self ._get_service_name ():
525525 # Convert to corresponding bool
526- ready = self ._get_highlighted_cell ("ready" ) == emoji .check_mark
526+ ready = self ._get_highlighted_cell ("ready" ) == Emoji .check_mark
527527
528528 if ready :
529529 command = self .commands ._get_logs # noqa: SLF001
0 commit comments