0
0
Fork 0

fix: we don't need complete

This commit is contained in:
하누 2023-03-26 03:30:09 +00:00 committed by GitHub
parent 33fd438f33
commit f81819eba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

4
app.py
View file

@ -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."