Skip to content
Snippets Groups Projects
Commit 239a17da authored by williamforbrigd's avatar williamforbrigd
Browse files

adsf

parent da190418
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,9 @@ from anytree import Node as Nd, RenderTree
from bbcli import check_response
from bbcli.entities.Node import Node
from bbcli.utils.URL_builder import URLBuilder
url_builder = URLBuilder()
base_url = 'https://ntnu.blackboard.com/learn/api/public/v1/'
......@@ -109,8 +112,8 @@ def get_children(session, worklist, url, acc, count: int = 0):
children = response.json()['results']
for i in range(len(children)):
# TODO: Add list of children instead of bool
# if key in children[i] and children[i][key] == True:
if children[i]['contentHandler'] == content_types['folder']:
if key in children[i] and children[i][key] == True:
# if children[i]['contentHandler'] == content_types['folder']:
child = Node(children[i], True, node)
worklist.append(child)
acc.append(child)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment