Skip to content

Commit 9a76695

Browse files
committed
Fixed license attributes that had changed for artifacts
1 parent 06a0c42 commit 9a76695

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

socketdev/fullscans/__init__.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,9 @@ def from_dict(cls, data: dict) -> "LicenseMatch":
343343
@dataclass
344344
class LicenseDetail:
345345
authors: List[str]
346-
charEnd: int
347-
charStart: int
346+
errorData: str
348347
filepath: str
349348
match_strength: int
350-
filehash: str
351349
provenance: str
352350
spdxDisj: List[List[LicenseMatch]]
353351

@@ -360,14 +358,13 @@ def to_dict(self):
360358
@classmethod
361359
def from_dict(cls, data: dict) -> "LicenseDetail":
362360
return cls(
361+
spdxDisj=data["spdxDisj"],
363362
authors=data["authors"],
364-
charEnd=data["charEnd"],
365-
charStart=data["charStart"],
363+
errorData=data["errorData"],
364+
provenance=data["provenance"],
366365
filepath=data["filepath"],
367366
match_strength=data["match_strength"],
368-
filehash=data["filehash"],
369-
provenance=data["provenance"],
370-
spdxDisj=[[LicenseMatch.from_dict(match) for match in group] for group in data["spdxDisj"]],
367+
371368
)
372369

373370

socketdev/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.1.6"
1+
__version__ = "2.1.7"

0 commit comments

Comments
 (0)