Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
tests
Browse files
app.py
CHANGED
@@ -134,7 +134,8 @@ async def add_exp(member_id):
|
|
134 |
global global_df
|
135 |
|
136 |
guild = bot.get_guild(879548962464493619)
|
137 |
-
member = guild.get_member(member_id)
|
|
|
138 |
lvl1 = guild.get_role(1171861537699397733)
|
139 |
lvl2 = guild.get_role(1171861595115245699)
|
140 |
lvl3 = guild.get_role(1171861626715115591)
|
@@ -175,7 +176,8 @@ async def add_exp(member_id):
|
|
175 |
|
176 |
member_found = False
|
177 |
for index, cell_value in global_df.iloc[:, 0].items():
|
178 |
-
|
|
|
179 |
# if found, update that row...
|
180 |
member_found = True
|
181 |
print(f"Record for {member} found at row {index + 1}, column 1")
|
|
|
134 |
global global_df
|
135 |
|
136 |
guild = bot.get_guild(879548962464493619)
|
137 |
+
member = guild.get_member(str(member_id))
|
138 |
+
print(member)
|
139 |
lvl1 = guild.get_role(1171861537699397733)
|
140 |
lvl2 = guild.get_role(1171861595115245699)
|
141 |
lvl3 = guild.get_role(1171861626715115591)
|
|
|
176 |
|
177 |
member_found = False
|
178 |
for index, cell_value in global_df.iloc[:, 0].items():
|
179 |
+
print("trying...")
|
180 |
+
if str(cell_value) == str(member_id):
|
181 |
# if found, update that row...
|
182 |
member_found = True
|
183 |
print(f"Record for {member} found at row {index + 1}, column 1")
|