Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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
|
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}')
|