fix comment out

pull/5186/head
Yilun Chong 7 years ago
parent cee0447fd9
commit dfa53e2fa2
  1. 14
      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__":

Loading…
Cancel
Save