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.
[2020-07-04 14:03:59,011] ERROR in app: Exception on /administration/admin/recent-activity [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
<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 }}">