lunarflu HF staff commited on
Commit
0ca9f8f
1 Parent(s): 1964a43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -98,9 +98,10 @@ async def on_message(message):
98
  # read
99
  xp = worksheet.cell(cell.row, cell.col+2).value
100
  print("debug")
101
- xp += XP_PER_MESSAGE
102
  print("debug")
103
  current_level = calculate_level(xp)
 
104
  print("debug")
105
  # write with added xp
106
  worksheet.update(values=[[xp, current_level]], range_name=f'C{cell.row}:D{cell.row}')
 
98
  # read
99
  xp = worksheet.cell(cell.row, cell.col+2).value
100
  print("debug")
101
+ xp = int(xp) + XP_PER_MESSAGE
102
  print("debug")
103
  current_level = calculate_level(xp)
104
+ print(current_level)
105
  print("debug")
106
  # write with added xp
107
  worksheet.update(values=[[xp, current_level]], range_name=f'C{cell.row}:D{cell.row}')