aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-19 03:10:33 +0300
committerBonfaceKilz2020-08-19 03:10:33 +0300
commit8be6ecf3d6b70b40be97d4abebb59eabcce8c8f8 (patch)
tree04dea17bec771ad97ea205676bc0c7d1f6ce5e75 /wqflask
parentcaec08fa1e738fa9bc1b0b6bf626d8325f798712 (diff)
downloadgenenetwork2-8be6ecf3d6b70b40be97d4abebb59eabcce8c8f8.tar.gz
Convert the use of iterator’s next() methods to the next() function
Run `2to3-3.8 -f next -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-next>
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/collect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index 42a09fed..4c6e38e6 100644
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -193,7 +193,7 @@ def view_collection():
params = request.args
uc_id = params['uc_id']
- uc = (collection for collection in g.user_session.user_collections if collection["id"] == uc_id).next()
+ uc = next((collection for collection in g.user_session.user_collections if collection["id"] == uc_id))
traits = uc["members"]
trait_obs = []