mirror of https://github.com/borgbase/vorta
Merge 164c906376
into 9cabbbd193
This commit is contained in:
commit
225354cafd
|
@ -130,6 +130,8 @@ class ProfileExport:
|
|||
# Set the profile ids to be match new profile
|
||||
for source in self._profile_dict['SourceFileModel']:
|
||||
source['profile'] = self.id
|
||||
for source in SourceFileModel.select():
|
||||
SourceFileModel.delete_by_id(source)
|
||||
SourceFileModel.insert_many(self._profile_dict['SourceFileModel']).execute()
|
||||
|
||||
# Delete added dictionaries to make it match BackupProfileModel
|
||||
|
|
Loading…
Reference in New Issue