mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 09:42:40 +02:00
25 lines
557 B
Python
25 lines
557 B
Python
|
|
"""Action-log events relayed from ``ActionLogMiddleware`` custom dispatches."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from typing import Any
|
||
|
|
|
||
|
|
from ..emitter import Emitter
|
||
|
|
from .data import format_data
|
||
|
|
|
||
|
|
|
||
|
|
def format_action_log(
|
||
|
|
payload: dict[str, Any],
|
||
|
|
*,
|
||
|
|
emitter: Emitter | None = None,
|
||
|
|
) -> str:
|
||
|
|
return format_data("action-log", payload, emitter=emitter)
|
||
|
|
|
||
|
|
|
||
|
|
def format_action_log_updated(
|
||
|
|
payload: dict[str, Any],
|
||
|
|
*,
|
||
|
|
emitter: Emitter | None = None,
|
||
|
|
) -> str:
|
||
|
|
return format_data("action-log-updated", payload, emitter=emitter)
|