Skip to content

Commit ba19f3c

Browse files
committed
chore: replace id with itemid
One more instance: the variable 'id' shadows the builtin id()
1 parent b801622 commit ba19f3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roundup/cgi/templating.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3459,8 +3459,9 @@ def batch(self, permission='View'):
34593459
matches = None
34603460

34613461
# filter for visibility
3462-
allowed = [id for id in klass.filter(matches, filterspec, sort, group)
3463-
if check(permission, userid, self.classname, itemid=id)]
3462+
allowed = [itemid for itemid in klass.filter(matches, filterspec,
3463+
sort, group)
3464+
if check(permission, userid, self.classname, itemid=itemid)]
34643465

34653466
# return the batch object, using IDs only
34663467
return Batch(self.client, allowed, self.pagesize, self.startwith,

0 commit comments

Comments
 (0)