зеркало из https://github.com/mozilla/treeherder.git
Merge pull request #249 from mozilla/bug-1079984-clear-build-system-cache
Bug 1079984 - Delete build system cached list when project is not found
This commit is contained in:
Коммит
59dba0e5c6
|
@ -196,7 +196,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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче