Skip to content

Commit

Permalink
minor edits to import and scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
jgpeachey committed Jul 25, 2023
1 parent 4a68df6 commit c5bd66b
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 379 deletions.
5 changes: 3 additions & 2 deletions ROUSProj/ROUSApp/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.2 on 2023-07-25 01:46
# Generated by Django 4.2.2 on 2023-07-25 16:01

from django.db import migrations, models

Expand Down Expand Up @@ -60,6 +60,7 @@ class Migration(migrations.Migration):
('TFrame', models.SmallIntegerField(default=0)),
('E_F', models.CharField(max_length=10)),
('title', models.TextField(blank=True)),
('Scheduled', models.BooleanField(default=False)),
],
options={
'unique_together': {('PlaneSN', 'MDS', 'title')},
Expand Down Expand Up @@ -92,13 +93,13 @@ class Migration(migrations.Migration):
('CrntTime', models.FloatField(default=0.0)),
('TimeRemain', models.FloatField(default=0.0)),
('DueTime', models.FloatField(default=0.0)),
('DueDate', models.DateField()),
('Freq', models.SmallIntegerField(default=0)),
('Type', models.CharField(max_length=1)),
('JST', models.IntegerField(default=0)),
('TFrame', models.SmallIntegerField(default=0)),
('E_F', models.CharField(max_length=10)),
('title', models.TextField(blank=True)),
('Scheduled', models.BooleanField(default=False)),
],
options={
'unique_together': {('PlaneSN', 'MDS', 'title')},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.2 on 2023-07-25 16:22

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ROUSApp', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='partmaintenance',
name='Scheduled',
field=models.BooleanField(default=True),
),
migrations.AlterField(
model_name='planemaintenance',
name='Scheduled',
field=models.BooleanField(default=True),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 4.2.2 on 2023-07-25 16:37

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('ROUSApp', '0002_alter_partmaintenance_scheduled_and_more'),
]

operations = [
migrations.RemoveField(
model_name='partmaintenance',
name='Scheduled',
),
migrations.RemoveField(
model_name='planemaintenance',
name='Scheduled',
),
]
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions ROUSProj/ROUSApp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PlaneMaintenance(models.Model):
TFrame = models.SmallIntegerField(default=0)
E_F = models.CharField(max_length=10)
title = models.TextField(blank=True)
# Scheduled = models.BooleanField(default=False)
# Scheduled = models.BooleanField(default=True)

class Meta:
unique_together = (('PlaneSN', 'MDS', 'title'),)
Expand All @@ -47,14 +47,14 @@ class PartMaintenance(models.Model):
CrntTime = models.FloatField(default=0.0)
TimeRemain = models.FloatField(default=0.0)
DueTime = models.FloatField(default=0.0)
DueDate = models.DateField()
# DueDate = models.DateField()
Freq = models.SmallIntegerField(default=0)
Type = models.CharField(max_length=1)
JST = models.IntegerField(default=0)
TFrame = models.SmallIntegerField(default=0)
E_F = models.CharField(max_length=10)
title = models.TextField(blank=True)
# Scheduled = models.BooleanField(default=False)
# Scheduled = models.BooleanField(default=True)
class Meta:
unique_together = (('PlaneSN', 'MDS', 'title'),)

Expand Down
Loading

0 comments on commit c5bd66b

Please sign in to comment.