Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed unnecessary ON DUPLICATE KEY clause and also added ref data c…

…aching to populate_test_collections
  • Loading branch information...
commit 1ccf2d57390a51cda7658ecaf283bda139c4e3b8 1 parent 205895d
@jeads jeads authored
View
2  datazilla/controller/admin/collection.py
@@ -39,6 +39,8 @@ def load_test_collection(project):
id = ptm.set_test_collection(new_name, "")
ptm.set_test_collection_map(id, product_names[ new_name ])
+ ptm.cache_ref_data()
+
ptm.disconnect()
def get_test_collection_name(product, version, branch):
View
3  datazilla/model/base.py
@@ -980,8 +980,7 @@ def set_test_collection(self, name, description):
id = self._insert_data_and_get_id('set_test_collection',
[ name,
- description,
- name ])
+ description ])
return id
View
3  datazilla/model/sql/perftest.json
@@ -271,8 +271,7 @@
"set_test_collection":{
"sql":"INSERT INTO `test_collection` (`name`, `description`)
- VALUES (?, ?)
- ON DUPLICATE KEY UPDATE `name`=?",
+ VALUES (?, ?)",
"host":"master_host"
},
Please sign in to comment.
Something went wrong with that request. Please try again.