diff options
Diffstat (limited to 'lib/orm/models.py')
-rw-r--r-- | lib/orm/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/orm/models.py b/lib/orm/models.py index 99438285..8d95c319 100644 --- a/lib/orm/models.py +++ b/lib/orm/models.py @@ -148,6 +148,7 @@ class DataSource(models.Model): WEEKLY = 3 MONTHLY = 4 ONDEMAND = 5 + ONSTARTUP = 6 FREQUENCY = ( (MINUTELY, 'Minute'), (HOURLY, 'Hourly'), @@ -155,6 +156,7 @@ class DataSource(models.Model): (WEEKLY, 'Weekly'), (MONTHLY, 'Monthly'), (ONDEMAND, 'OnDemand'), + (ONSTARTUP, 'OnStartup'), ) key = models.CharField(max_length=20) @@ -273,7 +275,7 @@ class Cve(models.Model): packages = models.TextField(blank=True) - score_date = models.DateField(null=True, blank=True) + score_date = models.DateField(default=0) srt_updated = models.DateTimeField(auto_now=True) @property |