Skip to content

Commit

Permalink
fix: add old_asset_id back into mss view
Browse files Browse the repository at this point in the history
This exists in the old mss indexing code but hadn't made it to here, now it is in here!
  • Loading branch information
jrdh committed Sep 20, 2024
1 parent 30f0d6b commit 10e792c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dataimporter/emu/views/mss.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def transform(self, record: SourceRecord) -> dict:
"file": identifiers[0],
}

# add old MAM asset IDs if found
old_asset_id = record.get_first_value("GenDigitalMediaId")
if old_asset_id and old_asset_id != "Pending":
data["old_asset_id"] = old_asset_id

# grab the widths and heights of the original and all the derivatives
widths = tuple(record.iter_all_values("DocWidth"))
heights = tuple(record.iter_all_values("DocHeight"))
Expand Down

0 comments on commit 10e792c

Please sign in to comment.