Skip to content

Commit

Permalink
🚨 Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
znatty22 committed Sep 25, 2023
1 parent 5e09047 commit 998debe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kf_utils/dataservice/descendants.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _inner(parent_type, parent_kfids, descendants):
if parent_type in done:
return
done.add(parent_type)
for (child_type, link_on_parent, link_on_child) in descendancy.get(
for child_type, link_on_parent, link_on_child in descendancy.get(
parent_type, []
):
if use_api:
Expand Down Expand Up @@ -387,7 +387,7 @@ def _inner(parent_type, parent_kfids, descendants):
for k, v in descendants["genomic_file"].items()
if k not in to_remove
}
for (child_type, _, _) in descendancy.get(parent_type, []):
for child_type, _, _ in descendancy.get(parent_type, []):
if descendants.get(child_type):
_inner(child_type, descendants[child_type].keys(), descendants)

Expand Down
2 changes: 1 addition & 1 deletion kf_utils/dataservice/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def yield_entities_from_filter(host, endpoint, filters, show_progress=False):
pbar.update()
yield entity
try:
for (key, i) in [("after", 1), ("after_uuid", 2)]:
for key, i in [("after", 1), ("after_uuid", 2)]:
which[key] = j["_links"]["next"].split("=")[i].split("&")[0]
except KeyError:
break
Expand Down
1 change: 1 addition & 0 deletions kf_utils/dbgap/release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import xmltodict

# from d3b_utils.requests_retry import Session
from requests import Session
from xml.etree import ElementTree
Expand Down

0 comments on commit 998debe

Please sign in to comment.