diff options
author | Munyoki Kilyungi | 2024-02-26 21:59:52 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-03-26 10:01:13 +0300 |
commit | e63dcb43307ffa50fab4e4e05d0222f6809684c4 (patch) | |
tree | a3643342793aa69a0c47f98aff54a253a2447435 /gn2/wqflask | |
parent | 6ffada374437f4d8652fc9bfe75d94c5a54255db (diff) | |
download | genenetwork2-e63dcb43307ffa50fab4e4e05d0222f6809684c4.tar.gz |
Add missing "curry" to __run_cmd.
This is required to be able to pass __run_cmd through a pipeline.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r-- | gn2/wqflask/edit.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn2/wqflask/edit.py b/gn2/wqflask/edit.py index 36540939..64cc10c6 100644 --- a/gn2/wqflask/edit.py +++ b/gn2/wqflask/edit.py @@ -4,6 +4,7 @@ import subprocess from urllib.parse import urljoin from pathlib import Path +from pymonad.tools import curry from pymonad.either import Either, Left from flask import (Blueprint, @@ -23,6 +24,7 @@ def save_dataset_metadata( content: str, msg: str ) -> Either: """Save dataset metadata to git""" + @curry(2) def __run_cmd(cmd, status_code): __result = subprocess.run( cmd.split(" "), shell=True, |