Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFR-2247: Fixing deep copy work identifiers bug #397

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading