From ad84b1a142d928b3457f36c9eae3c087f13f067d Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 17 Jan 2023 10:53:25 +0300 Subject: Remove hard-coded values * scripts/sampledata.py (dump_sample_data): Remove hard-coded values for trait_id and dataset_name. --- scripts/sampledata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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") -- cgit v1.2.3