diff --git a/crenata/discord/commands/school/set.py b/crenata/discord/commands/school/set.py index 29970b5..8b77334 100644 --- a/crenata/discord/commands/school/set.py +++ b/crenata/discord/commands/school/set.py @@ -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="성공적으로 수정되었어요.", diff --git a/crenata/discord/embed.py b/crenata/discord/embed.py index 4bb952f..c682bf2 100644 --- a/crenata/discord/embed.py +++ b/crenata/discord/embed.py @@ -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: diff --git a/crenata/discord/interaction.py b/crenata/discord/interaction.py index 101fbee..3f02d41 100644 --- a/crenata/discord/interaction.py +++ b/crenata/discord/interaction.py @@ -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: