diff options
author | Munyoki Kilyungi | 2024-03-21 17:31:34 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-03-26 10:01:13 +0300 |
commit | 65a702fe8cac38051411049ef4601c1cddeea865 (patch) | |
tree | 0fb3c3279b0c49528ea23a2be24cf0142d72a824 /gn2 | |
parent | d745cc48e04c587f13d3eb8c1d1990076de72979 (diff) | |
download | genenetwork2-65a702fe8cac38051411049ef4601c1cddeea865.tar.gz |
Auto-pep8 (using flake8) file.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/edit.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gn2/wqflask/edit.py b/gn2/wqflask/edit.py index fc28af3d..151769c1 100644 --- a/gn2/wqflask/edit.py +++ b/gn2/wqflask/edit.py @@ -46,8 +46,11 @@ def save_dataset_metadata( return ( Either.insert(0) .then(__run_cmd(f"git -C {git_dir} add .".split(" "))) - .then(__run_cmd(f"git -C {git_dir} commit -m".split(" ") + [f'{msg}', f"--author='{author}'", "--no-gpg-sign"])) - .then(__run_cmd(f"git -C {git_dir} push origin master --dry-run".split(" "))) + .then(__run_cmd(f"git -C {git_dir} commit -m".split(" ") + [ + f'{msg}', f"--author='{author}'", "--no-gpg-sign" + ])) + .then(__run_cmd(f"git -C {git_dir} \ +push origin master --dry-run".split(" "))) ) @@ -102,12 +105,11 @@ def save(): request.form.get("id").split("/")[-1], f"{__map.get(request.form.get('section'))}" ) - __result = {} match request.form.get("type"): case "dcat:Dataset": __session = session_info()["user"] __author = f"{__session['name']} <{__session['email']}>" - __result = save_dataset_metadata( + save_dataset_metadata( git_dir=__gn_docs, output=__output, author=__author, |