Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 committed Jun 10, 2024
1 parent 24bd1e5 commit 3a60e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 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

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

tree = indent + os.path.basename(directory) + '/' + '\n'
Expand Down
1 change: 1 addition & 0 deletions src/pages/views/homeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function HomeView() {
while (true) {
try {
const response = await axios.get("http://localhost:5000/get-classifiers");
console.log(response);
setClassifiers(response.data);
setIsBackendAvailable(true);
break;
Expand Down

0 comments on commit 3a60e98

Please sign in to comment.