Skip to content

Commit

Permalink
Set last_modified time on collection creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Aug 22, 2023
1 parent 195f848 commit b713604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydatalab/pydatalab/routes/v0_1/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def create_collection():
409, # 409: Conflict
)

data["date"] = data.get("date", datetime.datetime.now())
data["last_modified"] = data.get("last_modified", datetime.datetime.now().isoformat())

try:
data_model = Collection(**data)
Expand Down

0 comments on commit b713604

Please sign in to comment.