Skip to content

Commit

Permalink
Ensure string keys for JSON output to maintain insertion order when p…
Browse files Browse the repository at this point in the history
…arsing in frontend

Change-Id: I212035420a82e249a5ef4ba5fcf217b7c74eeb93
  • Loading branch information
mohabfekry committed Oct 14, 2024
1 parent e3b57b3 commit ac31e2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/combiner/combiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,11 @@ def render(self):
combo = dataclasses.asdict(video_variant)
combo.pop('render_settings', None)
combo.update(rendered_variant_paths)
rendered_combos[str(video_variant.variant_id)] = combo
combo['av_segments'] = {
f'_{segment_id}': segment
for segment_id, segment in combo['av_segments'].items()
}
rendered_combos[f'_{video_variant.variant_id}'] = combo
logging.info(
'RENDERING - Rendered variant as: %r',
rendered_combos,
Expand Down

0 comments on commit ac31e2d

Please sign in to comment.