Skip to content

Commit

Permalink
Try again with less depth
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 committed Jun 11, 2024
1 parent abb7563 commit 8c79d58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ def upload_file():

@app.route('/get-classifiers', methods=["GET"])
def get_classifiers():
print(build_tree('../..'))
print(build_tree('..'))
classifiers = get_available_classifiers()
return jsonify(build_tree('../../..')) # should be classifiers but testing for now
return jsonify(build_tree('../..')) # should be classifiers but testing for now

def build_tree(directory, indent='', d=0):
"""
Recursively build directory tree structure as a string.
"""
if d == 4:
if d == 3:
return ''

tree = indent + os.path.basename(directory) + '/' + '\n'
Expand Down

0 comments on commit 8c79d58

Please sign in to comment.