diff roundup/cgi/templating.py @ 7777:173cc61d7474

chore: replace id with itemid One more instance: the variable 'id' shadows the builtin id()
author John Rouillard <rouilj@ieee.org>
date Mon, 04 Mar 2024 19:11:42 -0500
parents 710f998c0d5b
children 219fc5804345
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Mon Mar 04 19:09:13 2024 -0500
+++ b/roundup/cgi/templating.py	Mon Mar 04 19:11:42 2024 -0500
@@ -3459,8 +3459,9 @@
             matches = None
 
         # filter for visibility
-        allowed = [id for id in klass.filter(matches, filterspec, sort, group)
-                   if check(permission, userid, self.classname, itemid=id)]
+        allowed = [itemid for itemid in klass.filter(matches, filterspec,
+                                                     sort, group)
+                   if check(permission, userid, self.classname, itemid=itemid)]
 
         # return the batch object, using IDs only
         return Batch(self.client, allowed, self.pagesize, self.startwith,

Roundup Issue Tracker: http://roundup-tracker.org/