Unhandled Error - Debug Info
Traceback (most recent call last):
File "/home/k50stcj2t1yp/virtualenv/public_html/bloodgroups/3.11/lib/python3.11/site-packages/flask/app.py", line 867, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/k50stcj2t1yp/virtualenv/public_html/bloodgroups/3.11/lib/python3.11/site-packages/flask/app.py", line 852, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/k50stcj2t1yp/public_html/bloodgroups/app/routes/main.py", line 100, in post_blood_request
return render_template('post_blood_request.html', blood_requests=blood_requests, blood_groups=blood_groups, states=states)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/k50stcj2t1yp/virtualenv/public_html/bloodgroups/3.11/lib/python3.11/site-packages/flask/templating.py", line 152, in render_template
return _render(app, template, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/k50stcj2t1yp/virtualenv/public_html/bloodgroups/3.11/lib/python3.11/site-packages/flask/templating.py", line 133, in _render
rv = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/k50stcj2t1yp/virtualenv/public_html/bloodgroups/3.11/lib/python3.11/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
File "/home/k50stcj2t1yp/virtualenv/public_html/bloodgroups/3.11/lib/python3.11/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/k50stcj2t1yp/public_html/bloodgroups/templates/post_blood_request.html", line 1, in top-level template code
{% extends "base.html" %}
File "/home/k50stcj2t1yp/public_html/bloodgroups/templates/base.html", line 54, in top-level template code
{% block content %}{% endblock %}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/k50stcj2t1yp/public_html/bloodgroups/templates/post_blood_request.html", line 123, in block 'content'
{% for req, bg_name, district_name in blood_requests %}
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable PatientBloodRequest object