lunarflu HF staff commited on
Commit
f8e3b1e
1 Parent(s): ceb152f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -229,6 +229,7 @@ async def on_reaction_add(reaction, user):
229
 
230
  @bot.command(name='update_leaderboard')
231
  async def update_leaderboard(ctx, num_pairs: int = 10):
 
232
  # remove huggingfolks
233
  guild = ctx.guild
234
  role = discord.utils.get(guild.roles, id=897376942817419265)
@@ -240,9 +241,7 @@ async def update_leaderboard(ctx, num_pairs: int = 10):
240
  names_list = worksheet.col_values(2)[1:]
241
  updated_names_list = [name for name in names_list if name not in members_with_role]
242
 
243
- worksheet = gspread_bot.open("levelbot").sheet1
244
  levels_list = worksheet.col_values(4)[1:]
245
-
246
  channel = bot.get_channel(1197143964994773023)
247
  message = await channel.fetch_message(1197148293164187678)
248
 
 
229
 
230
  @bot.command(name='update_leaderboard')
231
  async def update_leaderboard(ctx, num_pairs: int = 10):
232
+ worksheet = gspread_bot.open("levelbot").sheet1
233
  # remove huggingfolks
234
  guild = ctx.guild
235
  role = discord.utils.get(guild.roles, id=897376942817419265)
 
241
  names_list = worksheet.col_values(2)[1:]
242
  updated_names_list = [name for name in names_list if name not in members_with_role]
243
 
 
244
  levels_list = worksheet.col_values(4)[1:]
 
245
  channel = bot.get_channel(1197143964994773023)
246
  message = await channel.fetch_message(1197148293164187678)
247