From 39afc680ea3eac81a2e5fff763c1cd1a51156bb5 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 12 Apr 2022 13:24:08 +0300 Subject: Delete "get_allowable_sampledata_headers" * gn3/csvcmp.py (get_allowable_sampledata_headers): Delete it. * tests/unit/test_csvcmp.py: Remove "get_allowable_sampledata_headers" import. (test_get_allowable_csv_headers): Delete it. --- gn3/csvcmp.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gn3/csvcmp.py') diff --git a/gn3/csvcmp.py b/gn3/csvcmp.py index 6ad84ef..24cbee0 100644 --- a/gn3/csvcmp.py +++ b/gn3/csvcmp.py @@ -123,15 +123,6 @@ def fill_csv(csv_text, width, value="x"): return "\n".join(data) -def get_allowable_sampledata_headers(conn: Any) -> List: - """Get a list of all the case-attributes stored in the database""" - attributes = ["Strain Name", "Value", "SE", "Count"] - with conn.cursor() as cursor: - cursor.execute("SELECT Name from CaseAttribute") - attributes += [attributes[0] for attributes in cursor.fetchall()] - return attributes - - def extract_invalid_csv_headers(allowed_headers: List, csv_text: str) -> List: """Check whether a csv text's columns contains valid headers""" csv_header = [] -- cgit v1.2.3