Skip to content

Commit 7dd7f35

Browse files
mitri-sloryDmitri
and
Dmitri
authored
Changed deep copy to shallow copy of WorkIdentifiers array (#397)
Co-authored-by: Dmitri <[email protected]>
1 parent eb3f816 commit 7dd7f35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

managers/sfrRecord.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
from Levenshtein import jaro_winkler
55
import pycountry
6-
import re, copy
6+
import re
77
from uuid import uuid4
88

99
from model import Work, Edition, Item, Identifier, Link, Rights
@@ -39,7 +39,7 @@ def mergeRecords(self):
3939

4040
matchedWorks.sort(key=lambda x: x[1])
4141

42-
allIdentifiers = copy.deepcopy(self.work.identifiers)
42+
allIdentifiers = self.work.identifiers.copy()
4343

4444
for edition in self.work.editions:
4545
allIdentifiers.extend(edition.identifiers)

0 commit comments

Comments
 (0)