lunarflu HF staff commited on
Commit
986fec0
1 Parent(s): c72c2a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- val = worksheet.cell(1, 1).value
271
- print(val)
272
- val = worksheet.cell(1, 2).value
273
- print(val)
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