From 8c79d58c85f19729bd60757a514171467ae76406 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 10 Jun 2024 17:28:56 -0700 Subject: [PATCH] Try again with less depth --- api/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/app.py b/api/app.py index 969adf81..d549f5e2 100644 --- a/api/app.py +++ b/api/app.py @@ -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'