Skip to content

Commit 461d0d4

Browse files
committed
Update compute_checksum method
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
1 parent e13a9ef commit 461d0d4

File tree

4 files changed

+1694
-1693
lines changed

4 files changed

+1694
-1693
lines changed

vulnerabilities/importer.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ def __post_init__(self):
213213

214214
if not self.vcs_url:
215215
raise ValueError("Commit must have a non-empty vcs_url.")
216-
if not isinstance(self.commit_hash, str):
217-
self.commit_hash = str(self.commit_hash)
218216

219217
def __lt__(self, other):
220218
if not isinstance(other, CodeCommitData):
@@ -598,17 +596,6 @@ class AdvisoryDataV2:
598596
date_published: Optional[datetime.datetime] = None
599597
weaknesses: List[int] = dataclasses.field(default_factory=list)
600598
url: Optional[str] = None
601-
602-
# TODO
603-
# Update from_dict and to_dict methods
604-
# Update compute_checksum method
605-
# Update BaseV2 Importer Pipeline
606-
# Change related tests
607-
# Add tests for these newly introduced fields
608-
# have a strong test for insert_advisory_v2 method
609-
# CodeCommitData importer
610-
# remove commit_rank from CodeCommitData importer
611-
612599
fixed_by_commits: List[CodeCommitData] = dataclasses.field(default_factory=list)
613600
affected_by_commits: List[CodeCommitData] = dataclasses.field(default_factory=list)
614601

0 commit comments

Comments
 (0)