質問編集履歴
1
pgidをuseridへ誤字を修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
client = bigquery.Client()
|
17
17
|
pgid = request.args.get('pgid') or ''
|
18
|
-
query = "INSERT `test_project.test_dataset.test_table` (userid,timestamp) VALUES ('{0}', CAST( '{1}' AS TIMESTAMP))".format(
|
18
|
+
query = "INSERT `test_project.test_dataset.test_table` (userid,timestamp) VALUES ('{0}', CAST( '{1}' AS TIMESTAMP))".format(userid,ts)
|
19
19
|
query_job = client.query(query)
|
20
20
|
query_res = query_job.result()
|
21
21
|
|