lunarflu HF staff commited on
Commit
8a36c89
1 Parent(s): c571187

create new record fix

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -90,7 +90,14 @@ async def on_message(message):
90
  # if not, create new record
91
  string_member_id = str(message.author.id)
92
  xp = 10
93
- worksheet.update(values=[[string_member_id, message.author.name, xp, level]], range_name=f'A{length+1}:D{length+1}')
 
 
 
 
 
 
 
94
  else:
95
  if cell:
96
  print(f"updating record for {message.author}")
 
90
  # if not, create new record
91
  string_member_id = str(message.author.id)
92
  xp = 10
93
+
94
+ print(string_member_id)
95
+ print(message.author.name)
96
+ print(xp)
97
+ print(level)
98
+
99
+ message_author_name = message.author.name
100
+ worksheet.update(values=[[string_member_id, message_author_name, xp, level]], range_name=f'A{length+1}:D{length+1}')
101
  else:
102
  if cell:
103
  print(f"updating record for {message.author}")