This commit is contained in:
Aryaman Sharma 2024-04-28 04:02:41 +05:30 committed by GitHub
commit 225354cafd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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