Skip to content

Commit

Permalink
Merge pull request #474 from ProjectDrawdown/ac_dates
Browse files Browse the repository at this point in the history
complete the creation_date circle
  • Loading branch information
denised authored Sep 29, 2021
2 parents 0797446 + afbc0ad commit 541a4cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/advanced_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 541a4cf

Please sign in to comment.