Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,8 @@ async def add_exp(member_id):
|
|
213 |
row_data = [member_id, member_name, xp, current_level]
|
214 |
new_row_df = pd.DataFrame([row_data], columns=global_df.columns)
|
215 |
print(type(global_df))
|
216 |
-
updated_df = global_df.append(new_row_df, ignore_index=True)
|
|
|
217 |
# initial role assignment
|
218 |
if current_level == 1:
|
219 |
if lvl1 not in member.roles:
|
|
|
213 |
row_data = [member_id, member_name, xp, current_level]
|
214 |
new_row_df = pd.DataFrame([row_data], columns=global_df.columns)
|
215 |
print(type(global_df))
|
216 |
+
#updated_df = global_df.append(new_row_df, ignore_index=True) deprecated
|
217 |
+
updated_df = pd.concat([global_df, pd.DataFrame([new_row_df])], ignore_index=True)
|
218 |
# initial role assignment
|
219 |
if current_level == 1:
|
220 |
if lvl1 not in member.roles:
|