aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/sample_data.py
diff options
context:
space:
mode:
authorBonfaceKilz2022-05-25 21:36:03 +0300
committerBonfaceKilz2022-05-27 15:02:25 +0300
commit9fa398d57e26c8ece01bce7a4f67545449e94821 (patch)
tree0c283c3e6b32ea02bd363ceb54151eeca5de887f /gn3/db/sample_data.py
parent99a7781b6aab87c76e5bb2a67b421e3240d7c562 (diff)
downloadgenenetwork3-9fa398d57e26c8ece01bce7a4f67545449e94821.tar.gz
Move sql for modifying case-attributes from gn2 to gn3
Diffstat (limited to 'gn3/db/sample_data.py')
-rw-r--r--gn3/db/sample_data.py10
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()