Browse Source

fix comment out

Yilun Chong 7 years ago
parent
commit
dfa53e2fa2
1 changed files with 8 additions and 8 deletions
  1. 8 8
      benchmarks/util/result_uploader.py

+ 8 - 8
benchmarks/util/result_uploader.py

@@ -60,13 +60,13 @@ def upload_result(result_list, metadata):
     new_result["labels"] = labels_string[1:]
     new_result["timestamp"] = _INITIAL_TIME
     print(labels_string)
-# 
-#     bq = big_query_utils.create_big_query()
-#     row = big_query_utils.make_row(str(uuid.uuid4()), new_result)
-#     if not big_query_utils.insert_rows(bq, _PROJECT_ID, _DATASET,
-#                                        _TABLE + "$" + _NOW,
-#                                        [row]):
-#       print('Error when uploading result', new_result)
+ 
+     bq = big_query_utils.create_big_query()
+     row = big_query_utils.make_row(str(uuid.uuid4()), new_result)
+     if not big_query_utils.insert_rows(bq, _PROJECT_ID, _DATASET,
+                                        _TABLE + "$" + _NOW,
+                                        [row]):
+       print('Error when uploading result', new_result)
 
 
 if __name__ == "__main__":
@@ -104,4 +104,4 @@ if __name__ == "__main__":
       node_file=args.node_input_file,
       php_file=args.php_input_file,
       php_c_file=args.php_c_input_file,
-  ), metadata)
+  ), metadata)