aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-26 21:59:52 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commite63dcb43307ffa50fab4e4e05d0222f6809684c4 (patch)
treea3643342793aa69a0c47f98aff54a253a2447435 /gn2/wqflask
parent6ffada374437f4d8652fc9bfe75d94c5a54255db (diff)
downloadgenenetwork2-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.py2
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,