Skip to content

Commit

Permalink
Changed deep copy to shallow copy of WorkIdentifiers array (#397)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitri <[email protected]>
  • Loading branch information
mitri-slory and Dmitri authored Oct 15, 2024
1 parent eb3f816 commit 7dd7f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions managers/sfrRecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
from Levenshtein import jaro_winkler
import pycountry
import re, copy
import re
from uuid import uuid4

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

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

allIdentifiers = copy.deepcopy(self.work.identifiers)
allIdentifiers = self.work.identifiers.copy()

for edition in self.work.editions:
allIdentifiers.extend(edition.identifiers)
Expand Down

0 comments on commit 7dd7f35

Please sign in to comment.