Skip to content

Commit

Permalink
Fixes from PR 55
Browse files Browse the repository at this point in the history
  • Loading branch information
cannero committed Sep 3, 2023
1 parent 20beb67 commit b36da97
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,10 @@ ENV/
.spyderproject

# Rope project settings
.ropeproject
.ropeproject

# test storage for simulations
environment/frontend_server/storage/test*

# vscode
.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
""
Empty file.
17 changes: 9 additions & 8 deletions environment/frontend_server/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@
{% endblock content %}

<!-- Latest compiled and minified JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

<script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

{% block js_content %}
{% endblock js_content %}

<script type="text/javascript" id="clustrmaps" src="//clustrmaps.com/map_v2.js?d=Xha1v8a6ENHDAgZ2dJoH85LCl6H1VwpYfgwfbgau8r4&cl=ffffff&w=a"></script>
<style type="text/css">
#clustrmaps-widget-v2 {
display: none !important
}
</style>
<!-- <script type="text/javascript" id="clustrmaps" src="//clustrmaps.com/map_v2.js?d=Xha1v8a6ENHDAgZ2dJoH85LCl6H1VwpYfgwfbgau8r4&cl=ffffff&w=a"></script> -->
<!-- <style type="text/css"> -->
<!-- #clustrmaps-widget-v2 { -->
<!-- display: none !important -->
<!-- } -->
<!-- </style> -->
</body>
</html>

Expand Down
4 changes: 2 additions & 2 deletions environment/frontend_server/translator/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit b36da97

Please sign in to comment.