Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -266,8 +266,8 @@ async def restore_exp(ctx):
|
|
266 |
#members_with_role = [member.id for member in ctx.guild.members if lvl13 in member.roles]
|
267 |
# extract user_id + xp based on level
|
268 |
for member_id in role_members:
|
269 |
-
|
270 |
-
if
|
271 |
continue
|
272 |
|
273 |
member = await bot.fetch_user(member_id)
|
@@ -277,7 +277,6 @@ async def restore_exp(ctx):
|
|
277 |
level = calculate_level(xp+1)
|
278 |
print(f"{role} {level} {xp} {member}")
|
279 |
|
280 |
-
string_member_id = str(member_id)
|
281 |
string_xp = str(xp)
|
282 |
string_level = str(level)
|
283 |
|
|
|
266 |
#members_with_role = [member.id for member in ctx.guild.members if lvl13 in member.roles]
|
267 |
# extract user_id + xp based on level
|
268 |
for member_id in role_members:
|
269 |
+
string_member_id = str(member_id)
|
270 |
+
if string_member_id in member_id_column_values:
|
271 |
continue
|
272 |
|
273 |
member = await bot.fetch_user(member_id)
|
|
|
277 |
level = calculate_level(xp+1)
|
278 |
print(f"{role} {level} {xp} {member}")
|
279 |
|
|
|
280 |
string_xp = str(xp)
|
281 |
string_level = str(level)
|
282 |
|