Commit 0e1d4d92383f0d569aefc0e14a2af0dc601bddf3
Exists in
dev
Merge branch 'dev' of https://gitlab.irap.omp.eu/pyros-irap/pyros into dev
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/core/pyros_django/scheduling/models.py
@@ -39,7 +39,7 @@ class PredictiveSchedule(models.Model): | @@ -39,7 +39,7 @@ class PredictiveSchedule(models.Model): | ||
39 | # Transform numpy matrix to JSON | 39 | # Transform numpy matrix to JSON |
40 | scheduler_matrix_as_json = json.dumps(self.scheduler_matrix, cls=NumpyArrayEncoder) | 40 | scheduler_matrix_as_json = json.dumps(self.scheduler_matrix, cls=NumpyArrayEncoder) |
41 | self.scheduler_matrix = scheduler_matrix_as_json | 41 | self.scheduler_matrix = scheduler_matrix_as_json |
42 | - super(EffectiveSchedule, self).save(*args, **kwargs) | 42 | + super(PredictiveSchedule, self).save(*args, **kwargs) |
43 | 43 | ||
44 | def get(self, *args, **kwargs): | 44 | def get(self, *args, **kwargs): |
45 | # Transform JSON to numpy matrix | 45 | # Transform JSON to numpy matrix |
@@ -50,5 +50,5 @@ class PredictiveSchedule(models.Model): | @@ -50,5 +50,5 @@ class PredictiveSchedule(models.Model): | ||
50 | 50 | ||
51 | 51 | ||
52 | class SchedulerHistory(EffectiveSchedule): | 52 | class SchedulerHistory(EffectiveSchedule): |
53 | - night_date = models.DateField(blank=True, null=True) | 53 | + night_datetime = models.DateTimeField(blank=True, null=True) |
54 | 54 | ||
55 | \ No newline at end of file | 55 | \ No newline at end of file |