aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-22 23:47:51 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commitdf32b162a8fb7ad9ab884e77e07a3b64e81e2922 (patch)
tree13626160c3579ffc0354e4ba5a7a84890449d5c1 /gn2/wqflask
parent97d150eaa6a927b3100d01d8e64a4e692a18f8ef (diff)
downloadgenenetwork2-df32b162a8fb7ad9ab884e77e07a3b64e81e2922.tar.gz
Add missing docstrings to save/metadata_edit functions.
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 0143d6c1..500d1dae 100644
--- a/gn2/wqflask/edit.py
+++ b/gn2/wqflask/edit.py
@@ -59,6 +59,7 @@ push origin master --dry-run".split(" ")))
@require_oauth2_edit_resource_access
@require_oauth2
def metadata_edit():
+ """Endpoint that provides editing functionality for datasets."""
from gn2.utility.tools import GN3_LOCAL_URL
_name = request.args.get("name")
match request.args.get("type"):
@@ -87,6 +88,7 @@ def metadata_edit():
@require_oauth2_edit_resource_access
@require_oauth2
def save():
+ """Save dataset edits in git."""
from gn2.utility.tools import get_setting
_gn_docs = Path(
get_setting("DATA_DIR"),