Skip to content

Commit

Permalink
Merge pull request #18 from ntoll/master
Browse files Browse the repository at this point in the history
Ensure source_uuid is added to Submission objects.
  • Loading branch information
redshiftzero authored Sep 26, 2018
2 parents f18264d + e2060fb commit bb9ddc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdclientapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def __init__(self, **kwargs) -> None:
self.is_read = False # type: bool
self.size = 0 # type: int
self.source_url = "" # type: str
self.source_uuid = "" # type: str
self.submission_url = "" # type: str
self.uuid = "" # type: str

Expand All @@ -112,6 +113,7 @@ def __init__(self, **kwargs) -> None:
if not key in kwargs:
AttributeError("Missing key {}".format(key))
setattr(self, key, kwargs[key])
_, self.source_uuid = self.source_url.rsplit('/', 1)


class Source:
Expand Down

0 comments on commit bb9ddc9

Please sign in to comment.