From 6d40289f8d012af42c61296093ce0aa06b88d199 Mon Sep 17 00:00:00 2001 From: shaeespring Date: Wed, 11 Feb 2026 20:28:12 -0500 Subject: [PATCH] no gender --- migrations/versions/a3ab8757ca1c_.py | 1 - migrations/versions/b521b18a7cc7_.py | 6 ------ selections/__init__.py | 1 - selections/models.py | 2 -- selections/templates/create.html | 6 ------ selections/templates/index.html | 4 ---- selections/templates/phone.html | 1 - selections/templates/review_app.html | 1 - selections/templates/vote.html | 1 - 9 files changed, 23 deletions(-) diff --git a/migrations/versions/a3ab8757ca1c_.py b/migrations/versions/a3ab8757ca1c_.py index 4e5cb24..b7d66d1 100644 --- a/migrations/versions/a3ab8757ca1c_.py +++ b/migrations/versions/a3ab8757ca1c_.py @@ -22,7 +22,6 @@ def upgrade(): sa.Column('id', sa.Integer(), nullable=False), sa.Column('body', sa.String(length=5000), nullable=True), sa.Column('team', sa.Integer(), nullable=True), - sa.Column('gender', sa.Enum('Male', 'Female', 'Other', name='gender_enum'), nullable=True), sa.PrimaryKeyConstraint('id') ) op.create_table('criteria', diff --git a/migrations/versions/b521b18a7cc7_.py b/migrations/versions/b521b18a7cc7_.py index 8a6f6e3..0fa4499 100644 --- a/migrations/versions/b521b18a7cc7_.py +++ b/migrations/versions/b521b18a7cc7_.py @@ -22,9 +22,6 @@ def upgrade(): op.alter_column('application', 'body', existing_type=mysql.VARCHAR(length=6000), nullable=False) - op.alter_column('application', 'gender', - existing_type=mysql.ENUM('Male', 'Female', 'Other'), - nullable=False) op.alter_column('application', 'team', existing_type=mysql.INTEGER(display_width=11), nullable=False) @@ -92,9 +89,6 @@ def downgrade(): op.alter_column('application', 'team', existing_type=mysql.INTEGER(display_width=11), nullable=True) - op.alter_column('application', 'gender', - existing_type=mysql.ENUM('Male', 'Female', 'Other'), - nullable=True) op.alter_column('application', 'body', existing_type=mysql.VARCHAR(length=6000), nullable=True) diff --git a/selections/__init__.py b/selections/__init__.py index 74baa99..fcadcd3 100644 --- a/selections/__init__.py +++ b/selections/__init__.py @@ -102,7 +102,6 @@ def main(info=None): applications = [ { 'id': a.id, - 'gender': a.gender, 'reviewed': a.id in reviewed_apps, 'interview': a.phone_int, 'review_count': Submission.query.filter_by(application=a.id).count(), diff --git a/selections/models.py b/selections/models.py index 15de3be..92f8bc8 100644 --- a/selections/models.py +++ b/selections/models.py @@ -3,7 +3,6 @@ from selections import db -#gender_enum = Enum('Male', 'Female', 'Other', name='gender_enum') interview_enum = Enum('Paper', 'Phone', name='interview_enum') @@ -13,7 +12,6 @@ class Applicant(db.Model): created = Column(DateTime(timezone=True), server_default=func.now(), nullable=False) #pylint: disable=not-callable body = Column(String(6000), nullable=True) team = Column(Integer, nullable=False) - gender = Column(String(15), nullable=False) phone_int = Column(Boolean, server_default='0', nullable=False) rit_id = Column(String(20), nullable=False) diff --git a/selections/templates/create.html b/selections/templates/create.html index 3e137c4..da6b661 100644 --- a/selections/templates/create.html +++ b/selections/templates/create.html @@ -10,12 +10,6 @@

Add Application

rows="10">
-
diff --git a/selections/templates/index.html b/selections/templates/index.html index 4a8e3ec..bd15c0c 100644 --- a/selections/templates/index.html +++ b/selections/templates/index.html @@ -40,7 +40,6 @@

Pending Applications

ID RIT ID - @@ -53,7 +52,6 @@

Pending Applications

{{ person.rit_id }} - {{ person.gender }} {% endif %} {% endfor %} @@ -73,7 +71,6 @@

All Applications

ID RIT ID - Reviewers Interview Score @@ -86,7 +83,6 @@

All Applications

{{ application.id }} {{ application.rit_id }} - {% for member in reviewers[application.id] %}

Phone Interview {{ application.id }}

- {% for paragraph in split_body %}

{{ paragraph }}

{% endfor %} diff --git a/selections/templates/review_app.html b/selections/templates/review_app.html index 2d61b66..70f73fd 100644 --- a/selections/templates/review_app.html +++ b/selections/templates/review_app.html @@ -22,7 +22,6 @@

Application {{ application.id }}

RIT ID: {{ application.rit_id }}
-
Team: {{ application.team }}
diff --git a/selections/templates/vote.html b/selections/templates/vote.html index 5b060fb..ef4ab97 100644 --- a/selections/templates/vote.html +++ b/selections/templates/vote.html @@ -8,7 +8,6 @@

Application {{ application.id }}

RIT ID: {{ application.rit_id }}
-