Skip to content

Commit

Permalink
Added temporary time.sleep to tree to simulate a long fetch time
Browse files Browse the repository at this point in the history
  • Loading branch information
OCopping committed Mar 14, 2022
1 parent 0e52e28 commit 788619d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webapp/blueprints/tree.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections import defaultdict
import os
import time
from typing import Any, Dict, List, Union
import h5py
from fastapi import APIRouter
Expand All @@ -20,6 +21,9 @@ def show_tree(path: str, subpath: str = "/"):
template: A rendered Jinja2 HTML template
"""
with LOCK:

time.sleep(10)

path = "/" + path

tr = defaultdict(dict)
Expand Down

0 comments on commit 788619d

Please sign in to comment.