Skip to content

Commit

Permalink
style: apply isort and black
Browse files Browse the repository at this point in the history
  • Loading branch information
SaidBySolo authored Nov 12, 2023
1 parent 7e998e1 commit 55ba721
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions crenata/application/commands/school/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from crenata.application.commands.school.meal import meal
from crenata.application.commands.school.search import search
from crenata.application.commands.school.setup import setup
from crenata.application.commands.school.users import users
from crenata.application.commands.school.timetable import timetable
from crenata.application.commands.school.users import users

school = app_commands.Group(name="학교", description="학교 관련 명령어입니다.")

school.add_command(meal)
school.add_command(search)
school.add_command(setup)
school.add_command(users)
school.add_command(timetable)
school.add_command(timetable)
2 changes: 1 addition & 1 deletion crenata/application/commands/school/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def setup(
school = await school_page(interaction, schools, ephemeral=True)

school_info = SchoolInfo(
school_name=school.name,
name=school.name,
grade=grade,
room=room,
edu_office_code=school.edu_office_code,
Expand Down
5 changes: 3 additions & 2 deletions crenata/application/commands/school/users.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from discord.interactions import Interaction
from discord import app_commands
from discord.interactions import Interaction

from crenata.application.client import Crenata
from crenata.application.embeds.users import school_users_embed_builder
from crenata.core.user.usecases.get import GetUserUseCase, GetAllSameSchoolUsersUseCase
from crenata.core.user.usecases.get import GetAllSameSchoolUsersUseCase, GetUserUseCase
from crenata.infrastructure.sqlalchemy.user.domain.repository import UserRepositoryImpl


Expand Down
12 changes: 3 additions & 9 deletions crenata/core/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,15 @@ class Strings:

USER_NOT_FOUND = "가입되지 않은 사용자입니다."
DUPLICATE_USER = "이미 가입된 사용자입니다."
MEAL_NAME_NOT_FOUND = (
"해당하는 식사 명을 찾을 수 없습니다. 조식, 중식, 석식 중에 다시 선택해 주시길"
" 바랍니다."
)
MEAL_NAME_NOT_FOUND = "해당하는 식사 명을 찾을 수 없습니다. 조식, 중식, 석식 중에 다시 선택해 주시길 바랍니다."

USER_CANCELLED = "취소되었습니다."
VIEW_TIMEOUT = "시간 초과되었습니다."
NEED_SCHOOL_REGISTER = "학교를 먼저 등록해 주시기 바랍니다."
DATE_PARSE_ERROR = (
"날짜를 잘못 입력했습니다. YYYYMMDD 형식, 또는 '내일'로 입력해 주시길 바랍니다."
" 예: 20220110, 내일"
)
INTERACTION_LOCKED = (
"다른 명령어을 사용 중일 때는 해당 명령어를 사용할 수 없습니다."
"날짜를 잘못 입력했습니다. YYYYMMDD 형식, 또는 '내일'로 입력해 주시길 바랍니다. 예: 20220110, 내일"
)
INTERACTION_LOCKED = "다른 명령어을 사용 중일 때는 해당 명령어를 사용할 수 없습니다."

MUST_BE_GREATER_THAN_ZERO = "학년 또는 반은 0보다 커야합니다."
NOT_INTERACTED_USER = "다른 사용자의 상호작용은 사용할 수 없습니다."
Expand Down
3 changes: 1 addition & 2 deletions crenata/infrastructure/neispy/timetable/domain/entity.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from dataclasses import dataclass

from neispy.domain.elstimetable import ElsTimeTableRow
from neispy.domain.mistimetable import MisTimeTableRow
from neispy.domain.histimetable import HisTimeTableRow
from neispy.domain.mistimetable import MisTimeTableRow
from neispy.domain.spstimetable import SpsTimeTableRow


from crenata.core.timetable.domain.entity import Timetable
from crenata.infrastructure.utils.datetime import to_datetime

Expand Down

0 comments on commit 55ba721

Please sign in to comment.