From afbc0ad7d7de9edf1cb40942c3e09f9b6c6717d3 Mon Sep 17 00:00:00 2001 From: Denise Draper Date: Tue, 28 Sep 2021 17:24:26 -0700 Subject: [PATCH] complete the creation_date circle Modified AC's get new dates. Haven't changed other AC creation paths because in those cases we don't know the provenance of the data. --- model/advanced_controls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model/advanced_controls.py b/model/advanced_controls.py index ceee75616..d9980e6e9 100644 --- a/model/advanced_controls.py +++ b/model/advanced_controls.py @@ -10,6 +10,7 @@ import typing import re from pathlib import Path +from datetime import datetime import pandas as pd import pytest from model import emissionsfactors as ef @@ -1042,6 +1043,7 @@ def with_modifications(self, **mods): requested fields modified. Note: the name is not changed unless it is specifically included in the modifications""" d = self.as_dict() + d['creation_date'] = datetime.now().strftime("%Y-%m-%d %H:%M:%S") d.update(mods) return ac_from_dict(d, self.vmas)