diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-03-13 17:32:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-21 00:00:25 +0000 |
commit | 934a9749eed4027d5523d845dd730d9c77cff44c (patch) | |
tree | 9e7200d210d98a293dfafdc843ea7afbeecb9187 /bitbake/lib | |
parent | 5d021f6de6973e5573dc4c2425b1faf33b5e9f98 (diff) | |
download | poky-934a9749eed4027d5523d845dd730d9c77cff44c.tar.gz |
bitbake: toastergui: builds and projects outcome filter
This patch fixes the Outcome filter in the all builds and
all projects pages in Build mode.
[YOCTO #7450]
(Bitbake rev: 61f209db436344efa29fbbd34faaf3ba085c3ce3)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index fa34e5622f..e87c9f2890 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -1924,8 +1924,8 @@ if toastermain.settings.MANAGED: | |||
1924 | 'filter' : {'class' : 'outcome', | 1924 | 'filter' : {'class' : 'outcome', |
1925 | 'label': 'Show:', | 1925 | 'label': 'Show:', |
1926 | 'options' : [ | 1926 | 'options' : [ |
1927 | ('Successful builds', 'state:' + str(BuildRequest.REQ_COMPLETED), queryset_all.filter(state=str(BuildRequest.REQ_COMPLETED)).count()), # this is the field search expression | 1927 | ('Successful builds', 'build__outcome:' + str(Build.SUCCEEDED), queryset_all.filter(build__outcome = Build.SUCCEEDED).count()), # this is the field search expression |
1928 | ('Failed builds', 'state:'+ str(BuildRequest.REQ_FAILED), queryset_all.filter(state=str(BuildRequest.REQ_FAILED)).count()), | 1928 | ('Failed builds', 'build__outcome:NOT'+ str(Build.SUCCEEDED), queryset_all.exclude(build__outcome = Build.SUCCEEDED).count()), |
1929 | ] | 1929 | ] |
1930 | } | 1930 | } |
1931 | }, | 1931 | }, |