Skip to content

Commit

Permalink
Fixup building tree of PR contents
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Aug 4, 2022
1 parent 6aad121 commit dcfd24c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/timessquare/storage/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,10 @@ async def get_github_pr_tree(

# Create a root node for the repo to use its insert_input method
# for sorting the tree and creating directories as needed
repo_node = GitHubNode(
node_type=GitHubNodeType.repo, title=repo, path="", contents=[]
owner_node = GitHubNode(
node_type=GitHubNodeType.owner, title=repo, path=owner, contents=[]
)
for tree_input in tree_inputs:
repo_node.insert_input(tree_input)
owner_node.insert_input(tree_input)

return repo_node.contents
return owner_node.contents[0].contents

0 comments on commit dcfd24c

Please sign in to comment.