File "/home/pi/thso.server/env/lib/python3.7/site-packages/jinja2/environment.py", line 638, in compile
self.handle_exception(source=source_hint)
File "/home/pi/thso.server/env/lib/python3.7/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/home/pi/thso.server/env/lib/python3.7/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/home/pi/thso.server/app/app/templates/views/public/device.html", line 250, in template
devmarker.bindPopup({% dev[0] %}).openPopup();
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'dev'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.
[2020-07-04 04:25:37,770] INFO in views: superuser admin added new device ddmgeo for application 3b56f3d8
[2020-07-04 04:43:27,669] ERROR in app: Exception on /application/3b56f3d8/device/4/geo [GET]
Traceback (most recent call last):
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
File "./app/helpers/decorators.py", line 23, in restricted_function
return f(*args, **kwargs)
File "./app/helpers/decorators.py", line 35, in protected_function
return f(*args, **kwargs)
File "./app/views.py", line 493, in application_device_geo
d = ddm.read_data(ld[2].tobytes(), dev[3])
IndexError: list index out of range
[2020-07-04 04:51:16,907] ERROR in app: Exception on /application/3b56f3d8/device/4/geo [GET]
Traceback (most recent call last):
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 1953, in full_dispatch_request
return self.finalize_request(rv)
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 1968, in finalize_request
response = self.make_response(rv)
File "/home/pi/thso.server/env/lib/python3.7/site-packages/flask/app.py", line 2131, in make_response
" {rv.__class__.__name__}.".format(rv=rv)
TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a list.
<aclass="nav-link"id="tab_{{ k }}"data-toggle="pill"href="#{{ k }}"role="tab"aria-controls="{{ k }}"aria-selected="true"onclick="display_data('{{ k }}')">{{ k }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
<divclass="tab-content"id="pills-tabContent">
{% for k in dev[3]['format'] %}
{% if k != 'lat' and k != 'lon' %}
<divclass="tab-pane fade card"id="{{ k }}"style="margin-top: 30px;"role="tabpanel"aria-labelledby="tab_{{ k }}">