Skip to content

Commit

Permalink
chore: name change after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFl committed Jan 30, 2025
1 parent 2ff9c3b commit e717b72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/application/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)
from application.core.types import (
Assessment_Status,
OSVLinuxRelease,
OSVLinuxDistribution,
Severity,
Status,
VexJustification,
Expand Down Expand Up @@ -139,7 +139,7 @@ class Product(Model):
osv_enabled = BooleanField(default=False)
osv_linux_distribution = CharField(
max_length=12,
choices=OSVLinuxRelease.OSV_LINUX_DISTRIBUTION_CHOICES,
choices=OSVLinuxDistribution.OSV_LINUX_DISTRIBUTION_CHOICES,
blank=True,
)
osv_linux_release = CharField(max_length=255, blank=True)
Expand Down Expand Up @@ -170,7 +170,7 @@ class Branch(Model):
cpe23 = CharField(max_length=255, blank=True)
osv_linux_distribution = CharField(
max_length=12,
choices=OSVLinuxRelease.OSV_LINUX_DISTRIBUTION_CHOICES,
choices=OSVLinuxDistribution.OSV_LINUX_DISTRIBUTION_CHOICES,
blank=True,
)
osv_linux_release = CharField(max_length=255, blank=True)
Expand Down
2 changes: 1 addition & 1 deletion backend/application/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class PURL_Type:
}


class OSVLinuxRelease:
class OSVLinuxDistribution:
DISTRIBUTION_ALMALINUX = "AlmaLinux"
DISTRIBUTION_ALPINE = "Alpine"
DISTRIBUTION_DEBIAN = "Debian"
Expand Down

0 comments on commit e717b72

Please sign in to comment.