ROBO-BEV/CafeBeep

Fix jinja2.exceptions with MenuScreen/1 input

Closed this issue · 2 comments

<center> <h4 style="color: #000000;"> Hot Brew {{ config[0][1] }} </h4></center>

File "/home/blaze/.local/lib/python3.5/site-packages/jinja2/environment.py", line 411, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: flask.config.Config object has no element 0

File "/home/blaze/GitHub/CafeBeep/CafeBeepKiosk-0.1/templates/MenuGUI_Page1.html", line 53, in top-level template code

Hot Brew {{ kioskConfig[0][1] }}


File "/home/blaze/.local/lib/python3.5/site-packages/jinja2/environment.py", line 411, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: 'kioskConfig' is undefined

Removed array notation but left Javascript in HMTL just incase

<script language ="JavaScript"> var drinkID = new Array(); drinkID[0] = TODO; </script>