зеркало из https://github.com/mozilla/treeherder.git
Bug 1079984 - Delete build system cached list when project is not found
This commit is contained in:
Родитель
6fab3a0890
Коммит
e1f445816c
|
@ -195,7 +195,7 @@ class JobsModel(TreeherderModelBase):
|
|||
if not project:
|
||||
project = self.project
|
||||
build_systems = cache.get("build_system_by_repo", None)
|
||||
if not build_systems:
|
||||
if not build_systems or project not in build_systems:
|
||||
build_systems = dict((repo, build_system_type) for repo, build_system_type in
|
||||
ReferenceDataSignatures.objects.order_by("repository"
|
||||
).values_list("repository", "build_system_type").distinct()
|
||||
|
|
Загрузка…
Ссылка в новой задаче