Skip to content

Commit 06247a5

Browse files
committed
Comment out findings to avoid lint
1 parent 4acfb97 commit 06247a5

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

gcp/workers/importer/importer.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -267,22 +267,23 @@ def _record_quality_finding(
267267

268268
# TODO: Do not write import findings at import time, as it could cause
269269
# confusing results.
270-
# We run osv-linter daily on all records and populate the linting bucket.
270+
# We run osv-linter daily on all records and populate
271+
# the linting bucket.
271272
return
272-
# Get any current findings for this record.
273-
findingtimenow = utcnow()
274-
if existing_finding := osv.ImportFinding.get_by_id(bug_id):
275-
if maybe_new_finding not in existing_finding.findings:
276-
existing_finding.findings.append(maybe_new_finding)
277-
existing_finding.last_attempt: findingtimenow
278-
existing_finding.put()
279-
else:
280-
osv.ImportFinding(
281-
bug_id=bug_id,
282-
source=source,
283-
findings=[maybe_new_finding],
284-
first_seen=findingtimenow,
285-
last_attempt=findingtimenow).put()
273+
# # Get any current findings for this record.
274+
# findingtimenow = utcnow()
275+
# if existing_finding := osv.ImportFinding.get_by_id(bug_id):
276+
# if maybe_new_finding not in existing_finding.findings:
277+
# existing_finding.findings.append(maybe_new_finding)
278+
# existing_finding.last_attempt: findingtimenow
279+
# existing_finding.put()
280+
# else:
281+
# osv.ImportFinding(
282+
# bug_id=bug_id,
283+
# source=source,
284+
# findings=[maybe_new_finding],
285+
# first_seen=findingtimenow,
286+
# last_attempt=findingtimenow).put()
286287

287288
def run(self):
288289
"""Run importer."""

0 commit comments

Comments
 (0)