diff options
Diffstat (limited to 'gn3/db/sample_data.py')
-rw-r--r-- | gn3/db/sample_data.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py index f79ce97..d29f6c8 100644 --- a/gn3/db/sample_data.py +++ b/gn3/db/sample_data.py @@ -1,8 +1,7 @@ """Module containing functions that work with sample data""" -from typing import Any, Tuple, Dict, Callable, Optional +from typing import Any, Tuple, Dict, Callable import re -import collections import MySQLdb from gn3.csvcmp import extract_strain_name @@ -423,10 +422,3 @@ def insert_sample_data( except Exception as _e: conn.rollback() raise MySQLdb.Error(_e) from _e - - -def get_case_attributes(conn) -> Optional[Tuple]: - """Get all the case attributes from the database.""" - with conn.cursor() as cursor: - cursor.execute("SELECT Id, Name, Description FROM CaseAttribute") - return cursor.fetchall() |