aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorPjotr Prins2023-06-18 13:31:45 +0200
committerzsloan2023-06-18 20:03:16 -0500
commit21ec0c8bf0f674aace9acc10849d763a5807cec2 (patch)
treeb008fe0667c8b0a9b40a3ec17a43139c0b8433ef /wqflask
parentef62acfebc77aeb6581ab65e67394fa63f228622 (diff)
downloadgenenetwork2-21ec0c8bf0f674aace9acc10849d763a5807cec2.tar.gz
Disable document editing - should move to markdown instead.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/docs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/docs.py b/wqflask/wqflask/docs.py
index 5065135b..c0a07ae2 100644
--- a/wqflask/wqflask/docs.py
+++ b/wqflask/wqflask/docs.py
@@ -34,7 +34,8 @@ def update_text(start_vars):
try:
if g.user_session.record.get('user_email_address') in ["zachary.a.sloan@gmail.com", "labwilliams@gmail.com"]:
with database_connection() as conn, conn.cursor() as cursor:
- cursor.execute("UPDATE Docs SET content=%s WHERE entry=%s",
+ # Disable updates fully - all docs should be in markdown - please move them there, just like the Environments doc
+ cursor.execute("UPDATEX Docs SET content=%s WHERE entry=%s",
(content, start_vars.get("entry_type"),))
except:
pass