From dc6a439a83f875fa49247d7ca86284e73212c646 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Thu, 15 Aug 2024 13:55:10 -0500 Subject: [PATCH] Fix reporting on bad column names --- src/pgwui_upload_core/views/upload.py | 58 +++++++++++++-------------- tests/views/test_upload.py | 34 ++++++++-------- 2 files changed, 45 insertions(+), 47 deletions(-) diff --git a/src/pgwui_upload_core/views/upload.py b/src/pgwui_upload_core/views/upload.py index ee7f81a..39aa3d6 100644 --- a/src/pgwui_upload_core/views/upload.py +++ b/src/pgwui_upload_core/views/upload.py @@ -239,35 +239,6 @@ class BaseTableUploadHandler(TabularFileUploadHandler): markupsafe.escape(qualified_table))) return (schema, table) - def report_bad_cols(self, qualified_table, bad_cols, quotecols): - if quotecols: - detail = ('

The following columns are not in the ({0})' - ' table, or the first line of your file is not' - ' in the expected format and your column names' - ' have merged (all the names appear in a single' - ' list item, below), or the supplied column names' - ' do not match' - " the character case of the table's columns," - ' or you do not have permission to access' - ' the columns: