diff --git a/src/vorta/borg/create.py b/src/vorta/borg/create.py index f693412d5..904df6cad 100644 --- a/src/vorta/borg/create.py +++ b/src/vorta/borg/create.py @@ -15,7 +15,8 @@ def process_result(self, result): snapshot_id=result['data']['archive']['id'], defaults={ 'name': result['data']['archive']['name'], - 'time': dt.fromisoformat(result['data']['archive']['start']), + # SQLite can't save timezone, so we remove it here. TODO: Keep as UTC? + 'time': dt.fromisoformat(result['data']['archive']['start']).replace(tzinfo=None), 'repo': result['params']['repo_id'], 'duration': result['data']['archive']['duration'], 'size': result['data']['archive']['stats']['deduplicated_size'], @@ -26,7 +27,7 @@ def process_result(self, result): stats = result['data']['cache']['stats'] repo = RepoModel.get(id=result['params']['repo_id']) repo.total_size = stats['total_size'] - repo.unique_csize = stats['unique_csize'] + # repo.unique_csize = stats['unique_csize'] repo.unique_size = stats['unique_size'] repo.total_unique_chunks = stats['total_unique_chunks'] repo.save() diff --git a/src/vorta/borg/info_repo.py b/src/vorta/borg/info_repo.py index 5970d1944..07a2190fe 100644 --- a/src/vorta/borg/info_repo.py +++ b/src/vorta/borg/info_repo.py @@ -57,7 +57,6 @@ def process_result(self, result): if 'cache' in result['data']: stats = result['data']['cache']['stats'] new_repo.total_size = stats['total_size'] - new_repo.unique_csize = stats['unique_csize'] new_repo.unique_size = stats['unique_size'] new_repo.total_unique_chunks = stats['total_unique_chunks'] if 'encryption' in result['data']: diff --git a/src/vorta/borg/list_repo.py b/src/vorta/borg/list_repo.py index 7b60a8c67..57327fe5d 100644 --- a/src/vorta/borg/list_repo.py +++ b/src/vorta/borg/list_repo.py @@ -52,7 +52,7 @@ def process_result(self, result): repo=repo.id, defaults={ 'name': archive['name'], - 'time': dt.fromisoformat(archive['time']), + 'time': dt.fromisoformat(archive['time']).replace(tzinfo=None), }, ) new_archive.save()