pre-commit
This commit is contained in:
parent
d8f5aff799
commit
f8d0077189
3 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
"""Load global config."""
|
||||
from lib2to3.pgen2 import token
|
||||
import os
|
||||
from lib2to3.pgen2 import token
|
||||
from pathlib import Path
|
||||
from typing import Union
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ from umongo import Document, EmbeddedDocument, fields
|
|||
from jarvis_core.db import JARVIS_INST
|
||||
from jarvis_core.db.utils import get_id, get_now
|
||||
|
||||
|
||||
@JARVIS_INST.register
|
||||
class Action(EmbeddedDocument):
|
||||
"""Modlog embedded action document."""
|
||||
|
|
|
@ -12,4 +12,4 @@ def get_now() -> datetime:
|
|||
|
||||
def get_id() -> str:
|
||||
"""Get nanoid."""
|
||||
return nanoid.generate(NANOID_ALPHA, 12)
|
||||
return nanoid.generate(NANOID_ALPHA, 12)
|
||||
|
|
Loading…
Add table
Reference in a new issue