Skip to content

Commit

Permalink
MIDASSIP.fromNERDm(): fix bug handling replaced id
Browse files Browse the repository at this point in the history
  • Loading branch information
RayPlante committed Feb 26, 2023
1 parent 9e26362 commit abf50c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nistoar/pdr/preserv/bagger/midas3.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def fromNERD(cls, nerdrec, reviewdir, uploaddir=None):
if replid and (replid.startswith('doi:') or replid.startswith("http")):
replid = None
if replid:
recnum = _midadid_to_dirname(midasid)
recnum = _midadid_to_dirname(replid)
for pdir in [reviewdir, uploaddir]:
extradir = os.path.join(pdir, recnum)
if os.path.isdir(extradir):
Expand Down

0 comments on commit abf50c4

Please sign in to comment.