From: Karl O. Pinc Date: Mon, 18 Jan 2021 22:53:33 +0000 (-0600) Subject: Fix "double hr" display above file errors X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=f296c95e1e03be4a0ecbd96fe6418756782b2b21;p=pgwui_bulk_upload Fix "double hr" display above file errors --- diff --git a/src/pgwui_bulk_upload/templates/bulk_upload.mak b/src/pgwui_bulk_upload/templates/bulk_upload.mak index d85a30c..12f9336 100644 --- a/src/pgwui_bulk_upload/templates/bulk_upload.mak +++ b/src/pgwui_bulk_upload/templates/bulk_upload.mak @@ -66,7 +66,9 @@ <%def name="file_errors(errors, filepath, firsterr)"> - % if filepath is not None: + % if filepath is None: +
+ % else: <% file_info = statmap[filepath] file_lines = file_info[0] @@ -85,7 +87,6 @@ <%block name="error_report"> % if e_cnt:

${e_cnt} errors found.

-
<% # Either every error has a filepath or none do firsterr = True