mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 20:41:12 +08:00
bfcb91b359
The previous workflow was: - insert basic metadata for all assets - iterate over all metadata entries. Create a sid if one does not exist - call insert_metadata again to update the assigned sid value. Instead, create a sid, if missing on the initial metadata assignment and remove the second pass of calling insert_metadata. Also, since the sid assignment code is only done in this one context, inline the sid assignment code so that there is less code step through while looking for where sid assignment is done.