Change "Open to enrollment" status to "Open to Enrollment"
This commit is contained in:
parent
c4c3a71300
commit
b41d080fe3
|
@ -0,0 +1,24 @@
|
|||
"""'Open to Enrollment' replacement
|
||||
|
||||
Revision ID: 2a10c0990574
|
||||
Revises: 0659a655b5be
|
||||
Create Date: 2022-09-19 10:19:24.269914
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2a10c0990574'
|
||||
down_revision = '0659a655b5be'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.execute("UPDATE irb_info_status SET \"STATUS\" = 'Open to Enrollment' WHERE \"STATUS\" like 'Open to enrollment'")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.execute("UPDATE irb_info_status SET \"STATUS\" = 'Open to enrollment' WHERE \"STATUS\" like 'Open to Enrollment'")
|
|
@ -117,7 +117,7 @@ class IRBInfoStatus(db.Model):
|
|||
status = [IRBInfoStatus(STATUS_ID='', STATUS=''),
|
||||
IRBInfoStatus(STATUS_ID='30', STATUS='In PreReview New Protocol'),
|
||||
IRBInfoStatus(STATUS_ID='31', STATUS='PreReview Complete New Protocol'),
|
||||
IRBInfoStatus(STATUS_ID='2', STATUS='Open to enrollment'),
|
||||
IRBInfoStatus(STATUS_ID='2', STATUS='Open to Enrollment'),
|
||||
IRBInfoStatus(STATUS_ID='39', STATUS='Withdrawn'),
|
||||
IRBInfoStatus(STATUS_ID='37', STATUS='Disapproved'),
|
||||
IRBInfoStatus(STATUS_ID='35', STATUS='Approvable with Conditions')]
|
||||
|
|
|
@ -152,7 +152,7 @@ class TestSanity(unittest.TestCase):
|
|||
event_id = '57'
|
||||
event_string = f"('{event_id}', '{event}')"
|
||||
|
||||
status = 'Open to enrollment'
|
||||
status = 'Open to Enrollment'
|
||||
status_id ='2'
|
||||
status_string = f"('{status_id}', '{status}')"
|
||||
|
||||
|
|
Loading…
Reference in New Issue