Skip to content

Commit

Permalink
Fixed notice_text erasure bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kebwi committed Dec 6, 2024
1 parent a6f9d00 commit 0f3a5df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dynamicannotationdb/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f3a5df

Please sign in to comment.