Skip to content

Commit

Permalink
imporoved asset->event meta inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed May 10, 2023
1 parent 3197617 commit 1ea35ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions backend/api/scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ async def scheduler(
# update the event
event_at_position["id_asset"] = event_data.id_asset
for field in channel.fields:
if field.name in asset.meta:
event_at_position[field.name] = asset.meta[field.name]
if field.name in ["color", "start", "stop", "promoted"]:
continue
event_at_position[field.name] = asset[field.name]
affected_events.append(event_at_position.id)
await ex_bin.save()
await event_at_position.save()
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const Sessions = () => {
nebula
.request('sessions', {id_user: nebula.user.id})
.then((res) => {
console.log(res.data)
setSessions(res.data)
})
.finally(() => setLoading(false))
Expand Down

0 comments on commit 1ea35ba

Please sign in to comment.