Commit 6124daef authored by Pierre Dittgen's avatar Pierre Dittgen

Remove column comparison code

parent 5f49751a
......@@ -106,35 +106,6 @@
{% endif %}
{% endfor %}
</ul>
{# Afficher un tableau de comparaison des colonnes #}
{% if report.table.column_comparison_needed %}
<table class="table table-bordered table-sm table-striped table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Colonnes du fichier</th>
<th scope="col">Colonnes attendues</th>
</tr>
</thead>
<tbody>
{% for elt in report.table.column_comparison_info.table %}
<tr{% if elt[2] == 'ko' %} class="table-danger"{% endif %}>
<td>{{ elt[0] }}</td>
<td>{{ elt[1] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if report.table.column_comparison_info.has_missing %}
<p>Attention : toutes les colonnes attendues doivent être présentes dans le fichier à valider.<p>
{% endif %}
{% if report.table.column_comparison_info.has_case_errors %}
<p>Attention : la casse (minuscules/majuscules) doit être respectée dans les noms de colonne.<p>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
......
......@@ -244,9 +244,6 @@ def create_validata_ui_report(validata_core_report, schema_dict):
else:
report['table']['errors']['body'].append(err)
# Checks if a column comparison is needed
report['table']['column_comparison_needed'] = False
# Group body errors by row id
rows = []
current_row_id = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment