lunarflu HF staff commited on
Commit
d692f1f
1 Parent(s): 7e43230

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -7,6 +7,8 @@ import datetime
7
  import requests
8
  import os.path
9
  import gspread
 
 
10
 
11
  import gradio_client
12
  import gradio as gr
@@ -117,9 +119,12 @@ async def update_sheet(ctx):
117
 
118
  verified_role = guild.get_role(900063512829755413)
119
  for member in verified_role.members:
 
120
  string_user_id = str(member.id)
 
 
121
 
122
- cell_list = worksheet2.findall(member.id, in_column=1)
123
 
124
  for cell in cell_list:
125
  row_number = cell.row
 
7
  import requests
8
  import os.path
9
  import gspread
10
+ import re
11
+
12
 
13
  import gradio_client
14
  import gradio as gr
 
119
 
120
  verified_role = guild.get_role(900063512829755413)
121
  for member in verified_role.members:
122
+ print(f"member: {member}")
123
  string_user_id = str(member.id)
124
+ string_user_id_2 = string_user_id[:-5]
125
+ pattern = re.compile(re.escape(string_user_id_2))
126
 
127
+ cell_list = worksheet2.findall(pattern)
128
 
129
  for cell in cell_list:
130
  row_number = cell.row