Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
41864d5
1
Parent(s):
c3741e3
add query bq testing function
Browse files
app.py
CHANGED
@@ -136,9 +136,10 @@ 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 |
query_job = client.query(QUERY)
|
143 |
print('Running query')
|
144 |
query_result = query_job.result()
|
|
|
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)
|
144 |
print('Running query')
|
145 |
query_result = query_job.result()
|