From b713604e289c526ca8917d91eab7c8d8816202aa Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Tue, 22 Aug 2023 22:45:48 +0100 Subject: [PATCH] Set last_modified time on collection creation --- pydatalab/pydatalab/routes/v0_1/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydatalab/pydatalab/routes/v0_1/collections.py b/pydatalab/pydatalab/routes/v0_1/collections.py index 81512057a..676070803 100644 --- a/pydatalab/pydatalab/routes/v0_1/collections.py +++ b/pydatalab/pydatalab/routes/v0_1/collections.py @@ -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)