Skip to content

Commit

Permalink
explaining
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Jul 27, 2024
1 parent 7774662 commit 09719e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fiftyone/migrations/revisions/v0_26_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ def up(db, dataset_name):

db.datasets.replace_one(match_d, dataset_dict)

# Populate `Sample.created_at` values
if add_samples_created_at:
sample_collection_name = dataset_dict.get(
"sample_collection_name", None
)
if sample_collection_name:
_add_created_at(db, dataset_name, sample_collection_name)

# Populate `Frame.created_at` values
if add_frames_created_at:
frame_collection_name = dataset_dict.get("frame_collection_name", None)
if frame_collection_name:
Expand Down

0 comments on commit 09719e8

Please sign in to comment.