From f81819eba16b78dc203f7f240abaf0e245039716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=98=EB=88=84?= Date: Sun, 26 Mar 2023 03:30:09 +0000 Subject: [PATCH] fix: we don't need complete --- app.py | 4 ---- bot.py | 16 ++++++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/app.py b/app.py index d653acb..05a6056 100644 --- a/app.py +++ b/app.py @@ -139,10 +139,6 @@ async def update_metadata(response: Response, code: str, steam_id: str = Cookie( success += 1 percentage = round((success / total) * 100) role.add_or_edit_metadata(key="percentage", value=percentage) - if success == total: - role.add_or_edit_metadata(key="complete", value=True) - else: - role.add_or_edit_metadata(key="complete", value=False) await user.edit_role_connection(role) response.set_cookie(key="steam_id", value="", max_age=1) return "Successfully connected! Now go back to Discord and check result." diff --git a/bot.py b/bot.py index 6f9da97..57ca830 100644 --- a/bot.py +++ b/bot.py @@ -33,10 +33,10 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction): description="Perfect the tutorial", type=RoleMetadataType.boolean_equal, name_localizations={ - "ko": "" + "ko": "우등생" }, description_localizations={ - "ko": "" + "ko": "튜토리얼 스테이지를 퍼펙트로 클리어해야 합니다." } ), RoleMetadataRecord( @@ -45,10 +45,10 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction): description="Get through the morning", type=RoleMetadataType.boolean_equal, name_localizations={ - "ko": "" + "ko": "밝아오는 새로운 아침" }, description_localizations={ - "ko": "" + "ko": "모든 스테이지를 클리어해야 합니다." } ), RoleMetadataRecord( @@ -57,10 +57,10 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction): description="Get all perfect scores", type=RoleMetadataType.boolean_equal, name_localizations={ - "ko": "" + "ko": "자러 갈 시간" }, description_localizations={ - "ko": "" + "ko": "모든 스테이지를 퍼펙트로 클리어해야 합니다." } ), RoleMetadataRecord( @@ -69,10 +69,10 @@ async def _addConnection(inter: disnake.ApplicationCommandInteraction): description="% of cleared achievements", type=RoleMetadataType.interger_greater_than_or_equal, name_localizations={ - "ko": "" + "ko": "% 도전 과제 달성률" }, description_localizations={ - "ko": "" + "ko": "%의 도전 과제를 달성해야 합니다." } ) ]