This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch gc/8575
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/gc/8575 by this push:
new 06ee6e1e9 [#8575] code update to prevent lint errors for extracting
value from dictionary without calling .items()
06ee6e1e9 is described below
commit 06ee6e1e95d33c5261a36bc63d08acdeda715395
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/model/stats.py b/Allura/allura/model/stats.py
index 038a6afbf..3d2bc617d 100644
--- a/Allura/allura/model/stats.py
+++ b/Allura/allura/model/stats.py
@@ -506,7 +506,7 @@ def _updateTicketsStats(self, topics, action, s_time=None):
def getElementIndex(el_list, **kw):
for i in range(len(el_list)):
- for k in kw:
+ for k, v in kw.items():
if el_list[i].get(k) != kw[k]:
break
else: