change type of mode in project supervisor

This commit is contained in:
Patryk Drzewiński 2022-06-12 15:38:44 +02:00
parent 4f139ec137
commit 116f70b4a8
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class ProjectSupervisorFactory(alchemy.SQLAlchemyModelFactory):
email = Faker('email') email = Faker('email')
limit_group = 4 # FuzzyInteger(3, 5) limit_group = 4 # FuzzyInteger(3, 5)
count_groups = 4 count_groups = 4
mode = FuzzyChoice([True, False]) mode = 0
class GroupFactory(alchemy.SQLAlchemyModelFactory): class GroupFactory(alchemy.SQLAlchemyModelFactory):

View File

@ -7,4 +7,4 @@ class ProjectSupervisor(Base, Person):
limit_group = db.Column(db.Integer, default=1, nullable=False) limit_group = db.Column(db.Integer, default=1, nullable=False)
count_groups = 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