Skip to content

Conversation

@ziadhany
Copy link
Collaborator

@ziadhany ziadhany commented Jan 6, 2026

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
…rrectly assigned.

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
@ziadhany
Copy link
Collaborator Author

ziadhany commented Jan 9, 2026

Importing data using nginx_importer_v2
INFO 2026-01-19 11:55:00.255063 UTC Pipeline [NginxImporterPipeline] starting
INFO 2026-01-19 11:55:00.255214 UTC Step [fetch] starting
INFO 2026-01-19 11:55:00.255269 UTC Fetch `https://nginx.org/en/security_advisories.html`
INFO 2026-01-19 11:55:00.610653 UTC Step [fetch] completed in 0 seconds
INFO 2026-01-19 11:55:00.610980 UTC Step [collect_and_store_advisories] starting
INFO 2026-01-19 11:55:00.611169 UTC Collecting 42 advisories
INFO 2026-01-19 11:55:00.761049 UTC Progress: 11% (5/42) ETA: 1 seconds
INFO 2026-01-19 11:55:00.818259 UTC Progress: 21% (9/42) ETA: 1 seconds
INFO 2026-01-19 11:55:00.904199 UTC Progress: 33% (14/42) ETA: 1 seconds
INFO 2026-01-19 11:55:00.974590 UTC Progress: 45% (19/42)
INFO 2026-01-19 11:55:01.051762 UTC Progress: 57% (24/42)
INFO 2026-01-19 11:55:01.134207 UTC Progress: 69% (29/42)
INFO 2026-01-19 11:55:01.227462 UTC Progress: 80% (34/42)
InvalidVersionRange fixed_version_range: none - error: 'none' is not a valid <class 'univers.versions.NginxVersion'>
INFO 2026-01-19 11:55:01.281227 UTC Progress: 90% (38/42)
INFO 2026-01-19 11:55:01.339047 UTC Progress: 100% (42/42)
INFO 2026-01-19 11:55:01.354337 UTC Successfully collected 42 advisories
INFO 2026-01-19 11:55:01.354450 UTC Step [collect_and_store_advisories] completed in 1 seconds
INFO 2026-01-19 11:55:01.354505 UTC Pipeline completed in 1 seconds

Process finished with exit code 0
from vulnerabilities.models import AdvisoryV2
from django.db.models import Count
duplicates = (
    AdvisoryV2.objects
    .values('avid')
    .annotate(count=Count('id'))
    .filter(count__gt=1)
)
len(duplicates)
Out[5]: 0
AdvisoryV2.objects.count()
Out[6]: 42

@ziadhany ziadhany requested a review from TG1999 January 9, 2026 19:32
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant