Updating OTU schema issue
Attempting to add segments to the schema one-after-another results in replacing the existing segment with the added data. The length of the array never is greater than 1.

Refreshing the page between additions results and the segments being added properly and the schema growing in length.
diff --git a/virtool/db/otus.py b/virtool/db/otus.py
index 302503ae7..b25437cf5 100644
--- a/virtool/db/otus.py
+++ b/virtool/db/otus.py
@@ -315,7 +315,7 @@ async def update_last_indexed_version(db, id_list, version):
 
 
 async def update_sequence_segments(db, old, new):
-    if old is None or new is None:
+    if old is None or new is None or "schema" not in old:
         return
 
     old_names = {s["name"] for s in old["schema"]}
['virtool/db/otus.py']