Skip to content

Commit

Permalink
Merge pull request #62 from 2jun0/GDET-73
Browse files Browse the repository at this point in the history
GDET-73: 데일리 퀴즈 생성기 버그 픽스
  • Loading branch information
2jun0 authored Mar 13, 2024
2 parents d0bba94 + 0d9d5a1 commit 05fa747
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions aws_lambdas/daily_quiz/aws_lambda/model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import date, datetime
from typing import Optional, Sequence
from typing import Sequence

from pydantic import BaseModel, field_serializer

Expand All @@ -8,9 +8,9 @@ class Game(BaseModel):
id: int
steam_id: int
name: str
kr_name: Optional[str]
released_at: datetime
genres: Sequence[str]
aliases: Sequence[str]
updated_at: datetime
created_at: datetime

Expand Down
6 changes: 2 additions & 4 deletions aws_lambdas/tests/daily_quiz/utils/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def create_random_game(
*,
steam_id: Optional[int] = None,
name: Optional[str] = None,
kr_name: Optional[str] = None,
genres: Optional[list[str]] = None,
aliases: list[str] = [],
released_at: Optional[datetime] = None,
) -> Game:
global game_id_counter
Expand All @@ -23,8 +23,6 @@ def create_random_game(
steam_id = game_id_counter
if name is None:
name = f"Game #{steam_id}"
if kr_name is None:
kr_name = f"게임 #{steam_id}"
if genres is None:
genres = [f"Genre #{steam_id}"]
if released_at is None:
Expand All @@ -37,9 +35,9 @@ def create_random_game(
id=game_id_counter,
steam_id=steam_id,
name=name,
kr_name=kr_name,
created_at=created_at,
updated_at=updated_at,
genres=genres,
aliases=aliases,
released_at=released_at,
)

0 comments on commit 05fa747

Please sign in to comment.