From 116f70b4a80316db6999cf626917505ea05e0a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Drzewi=C5=84ski?= Date: Sun, 12 Jun 2022 15:38:44 +0200 Subject: [PATCH] change type of mode in project supervisor --- backend/app/factory.py | 2 +- backend/app/project_supervisor/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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