split errors in lines

This commit is contained in:
GroovieGermanikus 2023-10-13 22:15:25 +02:00
parent ecf11414c4
commit b6d205d586
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,7 @@ def RunQuery():
data = dict()
data['signature'] = row[0]
data['errors'] = row[1]
# data['errors_array'] = row[1].split(';')
data['errors_array'] = row[1].split(';')
data['is_executed'] = row[2]
data['is_confirmed'] = row[3]
data['cu_requested'] = row[4]

View File

@ -49,11 +49,13 @@
<td class="text-end"><span class="font-monospace">{{ tx.cu_requested|default('no CU', True) }}</span></td>
<td class="text-end">{{ tx.prioritization_fees|default('no fees', True) }}</td>
<td>
{% for error in tx.errors_array %}
<div class="d-flex align-items-center">
<div class="d-flex d-lg-none align-items-center"><span class="font-size-tiny me-2"></span><span
class="font-monospace text-danger">{{ tx.errors }}</span>
class="font-monospace text-danger">{{ error }}</span>
</div>
</div>
{% endfor %}
</td>
</tr>
{% endfor %}