aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-01-17 10:53:25 +0300
committerBonfaceKilz2023-01-20 15:02:46 +0300
commitad84b1a142d928b3457f36c9eae3c087f13f067d (patch)
treea1d791955b6c07d0898941d750d5fa15d301bf88 /scripts
parent77ed8f6a380aa274fb7fd8b9607bc6994bae845f (diff)
downloadgenenetwork2-ad84b1a142d928b3457f36c9eae3c087f13f067d.tar.gz
Remove hard-coded values
* scripts/sampledata.py (dump_sample_data): Remove hard-coded values for trait_id and dataset_name.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/sampledata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sampledata.py b/scripts/sampledata.py
index 3b26dead..411ec2b4 100644
--- a/scripts/sampledata.py
+++ b/scripts/sampledata.py
@@ -29,8 +29,8 @@ def dump_sample_data(dataset_name, trait_id):
data = show_trait.ShowTrait(
cursor, user_id=None,
kw={
- "trait_id": "10007",
- "dataset": "BXDPublish",
+ "trait_id": trait_id,
+ "dataset": dataset_name
}
)
attributes = data.js_data.get("attributes")