Player format
This commit is contained in:
1 parent
3dcd4173c2
commit
632d990c85
5 files changed
+27
-13
No files matched your search
@@ -7,6 +7,10 @@ from loon.web.logs.models import LogType, LogEntry
|
||||
from loon.web.logs.types import LogTypeEnum
|
||||
|
||||
|
||||
def player_tag(uuid: str, username: str) -> str:
|
||||
return f"[player:{uuid}]{username}[/player]"
|
||||
|
||||
|
||||
def _write_log(log_type: LogTypeEnum, message: str) -> None:
|
||||
with Session(engine) as session:
|
||||
statement = select(LogType).where(LogType.code == log_type.value)
|
||||
|
||||
Reference in new issue
Block a user