Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -267,11 +267,11 @@ async def restore_exp(ctx):
|
|
267 |
# if not, create new record
|
268 |
length = len(worksheet.col_values(1))
|
269 |
print(length) # number of cells that are filled
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
|
276 |
|
277 |
|
|
|
267 |
# if not, create new record
|
268 |
length = len(worksheet.col_values(1))
|
269 |
print(length) # number of cells that are filled
|
270 |
+
|
271 |
+
|
272 |
+
cell_value = worksheet.cell(length+1,1).value
|
273 |
+
if cell_value == "" or cell_value is None:
|
274 |
+
worksheet.update_cell(length+1, 1, member_id)
|
275 |
|
276 |
|
277 |
|