From 21ec0c8bf0f674aace9acc10849d763a5807cec2 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 18 Jun 2023 13:31:45 +0200 Subject: Disable document editing - should move to markdown instead. --- wqflask/wqflask/docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3