From 0f3a5df56f59055f1b066726bac313eef501be5b Mon Sep 17 00:00:00 2001 From: Keith Wiley Date: Fri, 6 Dec 2024 12:40:24 -0800 Subject: [PATCH] Fixed notice_text erasure bug --- dynamicannotationdb/annotation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dynamicannotationdb/annotation.py b/dynamicannotationdb/annotation.py index 8f451e1..5dfc4ab 100644 --- a/dynamicannotationdb/annotation.py +++ b/dynamicannotationdb/annotation.py @@ -202,6 +202,8 @@ def update_table_metadata( "write_permission": write_permission, } update_dict = {k: v for k, v in update_dict.items() if v is not None} + if notice_text.lower() == "none": + notice_text = "" if notice_text is not None: if len(notice_text) == 0: update_dict["notice_text"] = None