diff options
author | Munyoki Kilyungi | 2022-10-09 14:04:29 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-11-10 09:00:04 +0300 |
commit | 30c31955df6a9d20c28e0dcd9f99f06cbfd51a77 (patch) | |
tree | 8d18407757b6e6974b44457a3ca017d7099fa059 /scripts/add_missing_columns.sh | |
parent | d09a9485aebe0fa40c9fed2064a975a7cdd06e87 (diff) | |
download | genenetwork2-30c31955df6a9d20c28e0dcd9f99f06cbfd51a77.tar.gz |
Use the Maybe Monad when fetching the accession_id of a dataset
* wqflask/base/data_set/dataset.py: Import itertools, DictCursor, MonadicDict,
Maybe, Nothing and query_sql.
(DataSet.__init__): Initialize accession_id to Nothing.
(DataSet.as_dict): Rename this to ...
(Dataset.as_monadic_dict): ... this which returns a monadic
dictionary.
(DataSet.get_accession_id): Query for the accession_id and return it
as a maybe monad.
Diffstat (limited to 'scripts/add_missing_columns.sh')
0 files changed, 0 insertions, 0 deletions