From c741c03bae6c0cbe59afb5762e2a90a43a649cf8 Mon Sep 17 00:00:00 2001 From: henceiusegentoo Date: Wed, 9 Aug 2023 10:20:31 +0200 Subject: [PATCH] Made role-querying use a string for id instead of an int --- rewards/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewards/main.py b/rewards/main.py index ba0e87a..87be8f2 100644 --- a/rewards/main.py +++ b/rewards/main.py @@ -35,7 +35,7 @@ async def update_roles(mongo): for role in level_role_names: if role in role_names: users.update_one( - {'auth.discord': int(discord)}, + {'auth.discord': discord}, {'$set': {'level': role}} ) print(f'Updated {discord} to {role}')