Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1722)

Unified Diff: appengine/findit/model/base_analysis.py

Issue 2243673002: [Findit] Added algorithm to analysis (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: gclient sync Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/findit/model/base_analysis.py
diff --git a/appengine/findit/model/base_analysis.py b/appengine/findit/model/base_analysis.py
index cf54b4685cffc8b4743292f9e69befce13078cc4..f270d0699004c47d001aa07cd4f236d09e709638 100644
--- a/appengine/findit/model/base_analysis.py
+++ b/appengine/findit/model/base_analysis.py
@@ -19,6 +19,7 @@ class BaseAnalysis(ndb.Model):
def duration(self):
if not self.completed or not self.end_time or not self.start_time:
return None
+
return int((self.end_time - self.start_time).total_seconds())
@property
@@ -41,6 +42,6 @@ class BaseAnalysis(ndb.Model):
# When the analysis actually ended.
end_time = ndb.DateTimeProperty(indexed=False)
# When the analysis was updated.
- updated_time = ndb.DateTimeProperty(indexed=False, auto_now=True)
+ updated_time = ndb.DateTimeProperty(indexed=True, auto_now=True)
# Record which version of analysis.
version = ndb.StringProperty(indexed=False)
« no previous file with comments | « appengine/findit/handlers/flake/test/check_flake_test.py ('k') | appengine/findit/model/flake/master_flake_analysis.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698