(20250219) fml
This commit is contained in:
@@ -401,14 +401,16 @@ class AsyncMikroTik:
|
||||
): return True
|
||||
else: return False
|
||||
|
||||
def new_action_chain(self) -> None:
|
||||
def new_action_chain(self, action_chain: str | int = None) -> None:
|
||||
|
||||
"""
|
||||
Generates a new random string to mark a new action chain and saves it in the local variable.
|
||||
:param action_chain: A custom action chain to start using. A random string will be created if not provided.
|
||||
:return: None
|
||||
"""
|
||||
|
||||
self._action_log_chain = "".join(random.choices(string.ascii_letters + string.digits, k = 8))
|
||||
if action_chain: self._action_log_chain = action_chain
|
||||
else: self._action_log_chain = "".join(random.choices(string.ascii_letters + string.digits, k = 8))
|
||||
|
||||
async def log_action(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user