Commit d83ed1cb89f3a87d234e84767a5eef0ac91a471b

Authored by Alexis Koralewski
1 parent 9a587b42
Exists in dev

Rename Name of table in get override for PredictiveSchedule

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 39 # Transform numpy matrix to JSON
40 40 scheduler_matrix_as_json = json.dumps(self.scheduler_matrix, cls=NumpyArrayEncoder)
41 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 44 def get(self, *args, **kwargs):
45 45 # Transform JSON to numpy matrix
... ... @@ -50,5 +50,5 @@ class PredictiveSchedule(models.Model):
50 50  
51 51  
52 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 55 \ No newline at end of file
... ...