Skip to content

Commit

Permalink
Full path for tape_name
Browse files Browse the repository at this point in the history
  • Loading branch information
nmassey001 committed Nov 14, 2024
1 parent c981aa3 commit 1900983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nlds/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def from_path(cls, path: str):
return pd

@classmethod
def from_filemodel(cls, file: Enum):
def from_filemodel(cls, file: BaseModel):
"""Create from a File model returned from the database."""
# copy the basic info
pd = cls()
Expand Down Expand Up @@ -375,5 +375,5 @@ def tape_name(self) -> str | None:
if pl is None:
return None
else:
tape_name = f"{pl.url_netloc}/{pl.root}/{pl.path}"
tape_name = f"{pl.url_scheme}://{pl.url_netloc}/{pl.root}/{pl.path}"
return tape_name

0 comments on commit 1900983

Please sign in to comment.