This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit bc7a76982e87144f9dde56f1fc8b1eb094f7bed1
Author: Guillermo Cruz <[email protected]>
AuthorDate: Wed Feb 12 10:03:33 2025 -0700

    [#8575] code update to prevent lint errors for extracting value from 
dictionary without calling .items()
---
 Allura/allura/model/stats.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/model/stats.py b/Allura/allura/model/stats.py
index 038a6afbf..4d683a8b3 100644
--- a/Allura/allura/model/stats.py
+++ b/Allura/allura/model/stats.py
@@ -506,8 +506,8 @@ def _updateTicketsStats(self, topics, action, s_time=None):
 
 def getElementIndex(el_list, **kw):
     for i in range(len(el_list)):
-        for k in kw:
-            if el_list[i].get(k) != kw[k]:
+        for k, v in kw.items():
+            if el_list[i].get(k) != v:
                 break
         else:
             return i

Reply via email to