diff --git a/backend/app/factory.py b/backend/app/factory.py index 68c4068..e800204 100644 --- a/backend/app/factory.py +++ b/backend/app/factory.py @@ -17,7 +17,7 @@ class ProjectSupervisorFactory(alchemy.SQLAlchemyModelFactory): email = Faker('email') limit_group = 4 # FuzzyInteger(3, 5) count_groups = 4 - mode = FuzzyChoice([True, False]) + mode = 0 class GroupFactory(alchemy.SQLAlchemyModelFactory): diff --git a/backend/app/project_supervisor/models.py b/backend/app/project_supervisor/models.py index ce913c0..60ec9bb 100644 --- a/backend/app/project_supervisor/models.py +++ b/backend/app/project_supervisor/models.py @@ -7,4 +7,4 @@ class ProjectSupervisor(Base, Person): limit_group = db.Column(db.Integer, default=1, nullable=False) count_groups = db.Column(db.Integer, default=1, nullable=False) - mode = db.Column(db.Boolean, default=True, nullable=False) # True - stationary, False - non-stationary + mode = db.Column(db.Integer, default=0, nullable=False) # 0 - stationary, 1 - non-stationary, 2 - both