зеркало из https://github.com/mozilla/treeherder.git
added back in refdatamanager get_repository_id function
This commit is contained in:
Родитель
fa4b9302fd
Коммит
b0a63ab6f8
|
@ -255,6 +255,17 @@ class RefDataManager(object):
|
||||||
|
|
||||||
return self.get_product_id(name)
|
return self.get_product_id(name)
|
||||||
|
|
||||||
|
def get_repository_id(self, name):
|
||||||
|
"""get the id for the given repository"""
|
||||||
|
|
||||||
|
id_iter = self.dhub.execute(
|
||||||
|
proc='reference.selects.get_repository_id',
|
||||||
|
placeholders=[name],
|
||||||
|
debug_show=self.DEBUG,
|
||||||
|
return_type='iter')
|
||||||
|
|
||||||
|
return id_iter.get_column_data('id')
|
||||||
|
|
||||||
def get_repository_version_id(self, repository_id):
|
def get_repository_version_id(self, repository_id):
|
||||||
"""get the latest version available for the given repository"""
|
"""get the latest version available for the given repository"""
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче