Compare commits
1 Commits
26a6dd3c6c
...
705df21c17
Author | SHA1 | Date |
---|---|---|
Tim Van Baak | 705df21c17 |
|
@ -2,7 +2,7 @@
|
||||||
Article query interface
|
Article query interface
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import Union
|
from typing import Optional
|
||||||
|
|
||||||
from sqlalchemy import select
|
from sqlalchemy import select
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ def create(
|
||||||
db: DbContext,
|
db: DbContext,
|
||||||
lexicon_id: int,
|
lexicon_id: int,
|
||||||
user_id: int,
|
user_id: int,
|
||||||
character_id: Union[int, None],
|
character_id: Optional[int],
|
||||||
) -> Article:
|
) -> Article:
|
||||||
"""
|
"""
|
||||||
Create a new article in a lexicon.
|
Create a new article in a lexicon.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Character query interface
|
Character query interface
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import Union
|
from typing import Optional
|
||||||
|
|
||||||
from sqlalchemy import select, func
|
from sqlalchemy import select, func
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ def create(
|
||||||
lexicon_id: int,
|
lexicon_id: int,
|
||||||
user_id: int,
|
user_id: int,
|
||||||
name: str,
|
name: str,
|
||||||
signature: Union[str, None],
|
signature: Optional[str],
|
||||||
) -> Character:
|
) -> Character:
|
||||||
"""
|
"""
|
||||||
Create a new character for a user.
|
Create a new character for a user.
|
||||||
|
|
Loading…
Reference in New Issue