mirror of
https://github.com/harvard-lil/data-vault.git
synced 2025-07-04 13:46:56 -04:00
metadata updates
This commit is contained in:
parent
a1532df719
commit
9ccee0d422
7 changed files with 165 additions and 34 deletions
|
@ -10,4 +10,11 @@ def load_config():
|
|||
config = json.loads(CONFIG_PATH.read_text())
|
||||
else:
|
||||
config = {}
|
||||
return config
|
||||
return config
|
||||
|
||||
|
||||
def json_default(obj):
|
||||
"""Default JSON encoder for serializing datetime objects."""
|
||||
if hasattr(obj, 'isoformat'):
|
||||
return obj.isoformat()
|
||||
return super().default(obj)
|
Loading…
Add table
Add a link
Reference in a new issue