From 60ce37f101c12284b6f9fdc8fd126f59540180a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=98=EB=88=84?= Date: Wed, 22 Mar 2023 13:55:33 +0000 Subject: [PATCH] fix: can't use all achievements --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 0285a93..3f18807 100644 --- a/app.py +++ b/app.py @@ -121,9 +121,9 @@ async def update_metadata(response: Response, code: str, steam_id: str = Cookie( async for achieve in async_list(data["achievements"]): if achieve["achieved"] == 1: success += 1 - role.add_or_edit_metadata(key=achieve["apiname"], value=True if achieve["achieved"] == 1 else False) percentage = (success / total) * 100 role.add_or_edit_metadata(key="percentage", value=percentage) + role.add_or_edit_metadata(key="completed", value=False) if percentage == 100: role.add_or_edit_metadata(key="completed", value=True) await user.edit_role_connection(role)