Skip to content

Commit

Permalink
시간표 버그 수정 (#15)
Browse files Browse the repository at this point in the history
* 시간표 수정

* 시간표 수정

디버그용 print 제거

* 시간표 버그 수정 v.2

school_set 에서도 디버그 print를 제거했습니다.

---------

Co-authored-by: 최민건 <[email protected]>
  • Loading branch information
cuizzang and 최민건 committed Mar 24, 2023
1 parent 0b316aa commit fb37a08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions crenata/discord/commands/school/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async def school_set(
)

if user_school_info:
school_info.id = user_school_info.id
await interaction.client.ctx.query.school_info.update(school_info)
await interaction.edit_original_response(
content="성공적으로 수정되었어요.",
Expand Down
4 changes: 3 additions & 1 deletion crenata/discord/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ async def time_table_embed_maker(

def parse_hompage_url(url: str) -> str:
"""
학교 홈페이지 주소를 파싱해주는 함수입니다.
학교 홈 페이지 주소를 파싱해주는 함수입니다.
"""
if url == None:
return ""
if url.startswith("http") or url.startswith("https"):
return url
else:
Expand Down
1 change: 1 addition & 0 deletions crenata/discord/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ async def school_info(
results = await school_page(interaction, school_name)
edu_office_code = str(results.ATPT_OFCDC_SC_CODE)
standard_school_code = str(results.SD_SCHUL_CODE)
school_name = str(results.SCHUL_NM)

preferences = Preferences(private=False)
else:
Expand Down

0 comments on commit fb37a08

Please sign in to comment.