webkit-perf.appspot.com should accept test results without medians
[WebKit-https.git] / Websites / webkit-perf.appspot.com / merge_tests_handler.py
index 5fb8bba7416cdd5e6ecaeabef7ac3a793e51de3a..8160574982f367899ec912f858dc0ee602dfdfa2 100644 (file)
@@ -35,7 +35,7 @@ import os
 
 from models import Test
 from models import TestResult
-from models import deleteModelWithNumericIdHolder
+from models import delete_model_with_numeric_id_holder
 
 
 class MergeTestsHandler(webapp2.RequestHandler):
@@ -51,9 +51,9 @@ class MergeTestsHandler(webapp2.RequestHandler):
             self.response.out.write('Invalid test names')
             return
 
-        mergedResults = TestResult.all()
-        mergedResults.filter('name =', merge.name)
-        for result in mergedResults:
+        merged_results = TestResult.all()
+        merged_results.filter('name =', merge.name)
+        for result in merged_results:
             result.name = into.name
             result.put()
 
@@ -61,6 +61,6 @@ class MergeTestsHandler(webapp2.RequestHandler):
         # dashboard, manifest, and all runs for this test here.
         memcache.flush_all()
 
-        deleteModelWithNumericIdHolder(merge)
+        delete_model_with_numeric_id_holder(merge)
 
         self.response.out.write('OK')