ChenyuRabbitLove commited on
Commit
04ebc0e
1 Parent(s): 41864d5

add query bq testing function

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -136,8 +136,8 @@ with gr.Blocks(theme=seafoam, css=css) as demo:
136
 
137
  def run_query(user_id):
138
  QUERY = (
139
- 'SELECT created_at, points, user_role, joined, developer FROM `datastore_backup.UserData`'
140
- f'WHERE user_id = {user_id}'
141
  )
142
  print(f'Start query, user_id: {user_id}, {QUERY}')
143
  query_job = client.query(QUERY)
 
136
 
137
  def run_query(user_id):
138
  QUERY = (
139
+ "SELECT created_at, points, user_role, joined, developer FROM `datastore_backup.UserData`"
140
+ f"WHERE user_id = '{user_id}'"
141
  )
142
  print(f'Start query, user_id: {user_id}, {QUERY}')
143
  query_job = client.query(QUERY)