* [PATCH][v2] toaster: fix typo which prevents filters from working
@ 2016-06-07 15:29 Elliot Smith
2016-06-09 13:42 ` Michael Wood
0 siblings, 1 reply; 2+ messages in thread
From: Elliot Smith @ 2016-06-07 15:29 UTC (permalink / raw)
To: toaster
'k' was replaced by 'key' at some point but not fixed in the
body of the loop. This caused a failure when the the query
was constructed for a filtered queryset, due to the variable
not being defined.
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
---
bitbake/lib/toaster/toastergui/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 16f98ee..9d06000 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -268,7 +268,7 @@ def _get_filtering_query(filter_string):
or_values = kv[1].split(OR_VALUE_SEPARATOR)
query = None
for key, val in zip(or_keys, or_values):
- x = __get_q_for_val(k, val)
+ x = __get_q_for_val(key, val)
query = query | x if query else x
and_query = and_query & query if and_query else query
--
1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH][v2] toaster: fix typo which prevents filters from working
2016-06-07 15:29 [PATCH][v2] toaster: fix typo which prevents filters from working Elliot Smith
@ 2016-06-09 13:42 ` Michael Wood
0 siblings, 0 replies; 2+ messages in thread
From: Michael Wood @ 2016-06-09 13:42 UTC (permalink / raw)
To: toaster
Thanks pushed to toaster-next
On 07/06/16 16:29, Elliot Smith wrote:
> 'k' was replaced by 'key' at some point but not fixed in the
> body of the loop. This caused a failure when the the query
> was constructed for a filtered queryset, due to the variable
> not being defined.
>
> Signed-off-by: Elliot Smith <elliot.smith@intel.com>
> ---
> bitbake/lib/toaster/toastergui/views.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
> index 16f98ee..9d06000 100755
> --- a/bitbake/lib/toaster/toastergui/views.py
> +++ b/bitbake/lib/toaster/toastergui/views.py
> @@ -268,7 +268,7 @@ def _get_filtering_query(filter_string):
> or_values = kv[1].split(OR_VALUE_SEPARATOR)
> query = None
> for key, val in zip(or_keys, or_values):
> - x = __get_q_for_val(k, val)
> + x = __get_q_for_val(key, val)
> query = query | x if query else x
>
> and_query = and_query & query if and_query else query
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-09 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-07 15:29 [PATCH][v2] toaster: fix typo which prevents filters from working Elliot Smith
2016-06-09 13:42 ` Michael Wood
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.