Index: appengine/chromium_try_flakes/status/cq_status.py |
diff --git a/appengine/chromium_try_flakes/status/cq_status.py b/appengine/chromium_try_flakes/status/cq_status.py |
index aab8786412bc97bcd2ccf7d3317c53613c06e3aa..16786d0b6ffa725d47915a77d8adebed63361539 100644 |
--- a/appengine/chromium_try_flakes/status/cq_status.py |
+++ b/appengine/chromium_try_flakes/status/cq_status.py |
@@ -23,7 +23,7 @@ from model.flake import Flake |
from model.flake import FlakeOccurrence |
from model.flake import FlakyRun |
from status import build_result, util |
-import time_functions.timestamp |
+from infra_libs.time_functions import timestamp as tf_timestamp |
Sergiy Byelozyorov
2016/08/04 21:16:53
please change this to
import infra_libs.time_func
|
requests_metric = gae_ts_mon.CounterMetric( |
@@ -333,11 +333,11 @@ def fetch_cq_status(): |
if fetch_status: |
if fetch_status.done: |
logging.info('historical fetching done so fetch latest...') |
- end = str(time_functions.timestamp.utcnow_ts()) |
+ end = str(tf_timestamp.utcnow_ts()) |
last_build_run_seen = BuildRun.query().order( |
-BuildRun.time_finished).fetch(1) |
- begin = str(time_functions.timestamp.utctimestamp( |
+ begin = str(tf_timestamp.utctimestamp( |
last_build_run_seen[0].time_finished)) |
cursor = '' |
else: |
@@ -346,9 +346,9 @@ def fetch_cq_status(): |
cursor = fetch_status.cursor |
else: |
logging.info('didnt find any historical information. fetching last week') |
- begin = str(time_functions.timestamp.utctimestamp( |
+ begin = str(tf_timestamp.utctimestamp( |
datetime.datetime.utcnow() - datetime.timedelta(weeks=1))) |
- end = str(time_functions.timestamp.utcnow_ts()) |
+ end = str(tf_timestamp.utcnow_ts()) |
if begin and end: |
logging.info( |