Commit 769b3539 authored by Cyril Guilloud's avatar Cyril Guilloud

Merge branch 'wardrobe_fix' into 'master'

ParametersWardrobe: Fixes #804

Closes #804

See merge request !1349
parents e408953c ed16102b
Pipeline #11517 failed with stages
in 30 minutes and 52 seconds
......@@ -1739,11 +1739,19 @@ class ParametersWardrobe(metaclass=ParametersType):
@property
def last_accessed(self):
return self._last_accessed
attr_name = "_last_accessed"
if not hasattr(self, attr_name):
self._proxy[attr_name] = datetime.datetime.now().strftime("%Y-%m-%d-%H:%M")
self._populate(attr_name)
return getattr(self, attr_name)
@property
def creation_date(self):
return self._creation_date
attr_name = "_creation_date"
if not hasattr(self, attr_name):
self._proxy[attr_name] = datetime.datetime.now().strftime("%Y-%m-%d-%H:%M")
self._populate(attr_name)
return getattr(self, attr_name)
if __name__ == "__main__":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment