lunarflu HF staff commited on
Commit
3f44f27
1 Parent(s): 18dedf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -127,6 +127,7 @@ def blocking_io(member_id):
127
  # write with added xp
128
  worksheet.update(values=[[xp, current_level]], range_name=f'C{cell.row}:D{cell.row}')
129
  # level up
 
130
  if current_level >= 2 and current_level <=20:
131
  # pass current_level as int?
132
  return(current_level)
@@ -182,6 +183,7 @@ async def add_exp(member_id):
182
  await member.add_roles(lvl1)
183
  print(f"Gave {member} {lvl1}")
184
 
 
185
  if result >= 2:
186
  current_level = result
187
  current_role = lvls[current_level]
 
127
  # write with added xp
128
  worksheet.update(values=[[xp, current_level]], range_name=f'C{cell.row}:D{cell.row}')
129
  # level up
130
+ print(f"current_level: {current_level}")
131
  if current_level >= 2 and current_level <=20:
132
  # pass current_level as int?
133
  return(current_level)
 
183
  await member.add_roles(lvl1)
184
  print(f"Gave {member} {lvl1}")
185
 
186
+ print(f"result: {result}")
187
  if result >= 2:
188
  current_level = result
189
  current_role = lvls[current_level]