Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
edba5d60
Commit
edba5d60
authored
Nov 01, 2017
by
Rad Cirskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
less ambiguous variable name 'l'
parent
356d8fdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tools.py
flask_admin/contrib/sqla/tools.py
+4
-4
No files found.
flask_admin/contrib/sqla/tools.py
View file @
edba5d60
...
...
@@ -75,14 +75,14 @@ def tuple_operator_in(model_pk, ids):
The returning operator can be used within a filter(), as it is just an or_ operator
"""
l
=
[]
ands
=
[]
for
id
in
ids
:
k
=
[]
for
i
in
range
(
len
(
model_pk
)):
k
.
append
(
eq
(
model_pk
[
i
],
id
[
i
]))
l
.
append
(
and_
(
*
k
))
if
len
(
l
)
>=
1
:
return
or_
(
*
l
)
ands
.
append
(
and_
(
*
k
))
if
len
(
ands
)
>=
1
:
return
or_
(
*
ands
)
else
:
return
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment