diff --git a/.gitignore b/.gitignore index 5ef9005b6b..77a43d2b22 100644 --- a/.gitignore +++ b/.gitignore @@ -99,4 +99,10 @@ ENV/ .spyderproject # Rope project settings -.ropeproject \ No newline at end of file +.ropeproject + +# test storage for simulations +environment/frontend_server/storage/test* + +# vscode +.vscode/settings.json diff --git a/environment/frontend_server/storage/base_the_ville_isabella_maria_klaus/movement/.keepme b/environment/frontend_server/storage/base_the_ville_isabella_maria_klaus/movement/.keepme new file mode 100644 index 0000000000..a60141c49d --- /dev/null +++ b/environment/frontend_server/storage/base_the_ville_isabella_maria_klaus/movement/.keepme @@ -0,0 +1 @@ +"" diff --git a/environment/frontend_server/storage/base_the_ville_n25/movement/.keepme b/environment/frontend_server/storage/base_the_ville_n25/movement/.keepme new file mode 100644 index 0000000000..e69de29bb2 diff --git a/environment/frontend_server/templates/base.html b/environment/frontend_server/templates/base.html index 3e1dc6b33a..443fbbeee9 100644 --- a/environment/frontend_server/templates/base.html +++ b/environment/frontend_server/templates/base.html @@ -20,18 +20,19 @@ {% endblock content %} - - + + + {% block js_content %} {% endblock js_content %} - - + + + + + + diff --git a/environment/frontend_server/translator/views.py b/environment/frontend_server/translator/views.py index 20b8a29bba..42623cd4fe 100644 --- a/environment/frontend_server/translator/views.py +++ b/environment/frontend_server/translator/views.py @@ -106,7 +106,8 @@ def home(request): f_curr_sim_code = "temp_storage/curr_sim_code.json" f_curr_step = "temp_storage/curr_step.json" - if not check_if_file_exists(f_curr_step): + if not check_if_file_exists(f_curr_step): + print(f"{f_curr_step} not found, {os.getcwd()}") context = {} template = "home/error_start_backend.html" return render(request, template, context) @@ -117,7 +118,6 @@ def home(request): with open(f_curr_step) as json_file: step = json.load(json_file)["step"] - os.remove(f_curr_step) persona_names = [] persona_names_set = set()