Skip to content

Commit

Permalink
Small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakama3942 committed Jul 4, 2023
1 parent 689ef1b commit b24740c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions mighty_logger/basic/lib_types/text_buffer_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ def text_buffer(self) -> list:
def __lt__(self, message: str) -> None:
self.append(message)

def __gt__(self, number_string: int) -> None:
self.remove(number_string)
def __gt__(self, number_string: int) -> str:
return self.pop(number_string)

def __lshift__(self, name_file: str) -> None:
self.load(name_file)

def __rshift__(self, name_file: str) -> None:
self.save(name_file, True)
self.save(name_file, False)

def append(self, message: str) -> None:
raise NotImplementedError("Method append() is not implemented in the base class")
Expand Down
12 changes: 5 additions & 7 deletions mighty_logger/mighty_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@ def _init_buffer(self, console_width: int) -> None:

def _initial_log(self) -> None:
if self._environment.weak_environment:
self._buffer << "<body style='background-color: #000000; color: #ffffff;'>"
self._buffer << self._initialized_data(
[
ServiceLogger.initial[0][self._environment.environment_code][self._settings["global_background"]],
ServiceLogger.initial[1][self._environment.environment_code][self._settings["global_background"]]
]
)
self.empty("<body style='background-color: #000000; color: #ffffff;'>")
self.empty(self._initialized_data([
ServiceLogger.initial[0][self._environment.environment_code][self._settings["global_background"]],
ServiceLogger.initial[1][self._environment.environment_code][self._settings["global_background"]]
]))
if self._environment.updatable:
self._buffer.update_console()

Expand Down

0 comments on commit b24740c

Please sign in to comment.