Skip to content

Commit

Permalink
Fix import error again.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihao1021 committed Jun 11, 2024
1 parent 10f281a commit c6cf95b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/discord_oauth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .discord_oauth import DiscordOAuthRouter
from .schemas import (
AccessTokenResponse,
DiscordUser,
DiscordUserBase,
DisplayDiscordUser,
StorageData,
StorageDataView,
Expand Down
1 change: 0 additions & 1 deletion backend/discord_oauth/discord_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from datetime import datetime, timedelta, timezone
from os import urandom
from os.path import isdir
from typing import Literal

from .schemas import (
Expand Down
7 changes: 7 additions & 0 deletions backend/schemas/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ class TicketDataViewNoAuthor(TicketDataBase):
Same as TicketData, but without author field.
This will be return when user fetch a list of tickets for lower traffic.
"""
id: str = Field(
validation_alias=AliasChoices("id", "_id"),
serialization_alias="id",
title="TicketID",
description="Ticket ID.",
)

model_config = {
"json_schema_extra": {
"examples": [
Expand Down

0 comments on commit c6cf95b

Please sign in to comment.