]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: fix typo which prevents filters from working
authorElliot Smith <elliot.smith@intel.com>
Tue, 7 Jun 2016 15:29:35 +0000 (16:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jun 2016 10:08:58 +0000 (11:08 +0100)
'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>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
lib/toaster/toastergui/views.py

index 1f908ea209196feea5fa8797f749c82626400a03..d58aff0a1b807ed8119dcefeecf9e1406e3357d1 100755 (executable)
@@ -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