From c202ccb283fd090aefa138780326212ffdba4019 Mon Sep 17 00:00:00 2001 From: Paul Lesack Date: Tue, 8 Aug 2023 13:02:43 -0700 Subject: [PATCH] Source and target version in dict --- src/dataverse_utils/__init__.py | 2 +- src/dataverse_utils/dvdata.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dataverse_utils/__init__.py b/src/dataverse_utils/__init__.py index 5177e73..bdfa7c4 100644 --- a/src/dataverse_utils/__init__.py +++ b/src/dataverse_utils/__init__.py @@ -5,5 +5,5 @@ ''' from dataverse_utils.dataverse_utils import * -VERSION = (0,10,2) +VERSION = (0,10,3) __version__ = '.'.join([str(x) for x in VERSION]) diff --git a/src/dataverse_utils/dvdata.py b/src/dataverse_utils/dvdata.py index bd57cca..c6ce753 100644 --- a/src/dataverse_utils/dvdata.py +++ b/src/dataverse_utils/dvdata.py @@ -40,6 +40,7 @@ def __init__(self, pid: str, self['file_info'] = self['orig_json']['files'] self['file_ids'] = [x['dataFile'].get('id') for x in self['orig_json']['files']] self['file_persistentIds'] = self._get_file_pids() + self['source_version'] = Study.get_version(url) self['target_version'] = None if not self['target_version']: self['target_version'] = Study.get_version(url)