diff --git a/config.py b/config.py index ca75dc16..466c554d 100644 --- a/config.py +++ b/config.py @@ -17,7 +17,7 @@ class Config: PREFERRED_URL_SCHEME = "https" SAML_CONFIG = os.path.join(basedir, "config/saml/") - FRONTEND_URL = os.environ.get("FRONTEND_URL", "https://labconnect.cs.rpi.edu") + FRONTEND_URL = os.environ.get("FRONTEND_URL", "http://localhost:3000") SENTRY_DSN = os.environ.get("SENTRY_DSN", "") SENTRY_TRACES_SAMPLE_RATE = float(os.environ.get("SENTRY_TRACES_SAMPLE_RATE", 1.0)) diff --git a/labconnect/main/opportunity_routes.py b/labconnect/main/opportunity_routes.py index c2158bd0..3fa48c11 100644 --- a/labconnect/main/opportunity_routes.py +++ b/labconnect/main/opportunity_routes.py @@ -214,7 +214,6 @@ def getOpportunity(opp_id: int): ) data = query.all() - print(data) # check if opportunity exists if not data or len(data) == 0: diff --git a/migrations/versions/55928fddcb12_initial_migration.py b/migrations/versions/55928fddcb12_initial_migration.py index 6843086b..0fd7601f 100644 --- a/migrations/versions/55928fddcb12_initial_migration.py +++ b/migrations/versions/55928fddcb12_initial_migration.py @@ -40,7 +40,7 @@ def upgrade(): "opportunities", sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), sa.Column("name", sa.String(length=64), nullable=True), - sa.Column("description", sa.String(length=2000), nullable=True), + sa.Column("description", sa.String(length=4096), nullable=True), sa.Column("recommended_experience", sa.String(length=500), nullable=True), sa.Column("pay", sa.Float(), nullable=True), sa.Column("one_credit", sa.Boolean(), nullable=True), @@ -91,7 +91,7 @@ def upgrade(): op.create_table( "rpi_schools", sa.Column("name", sa.String(length=64), nullable=False), - sa.Column("description", sa.String(length=2000), nullable=True), + sa.Column("description", sa.String(length=4096), nullable=True), sa.PrimaryKeyConstraint("name"), ) op.create_table( @@ -129,7 +129,7 @@ def upgrade(): op.create_table( "rpi_departments", sa.Column("name", sa.String(length=64), nullable=False), - sa.Column("description", sa.String(length=2000), nullable=True), + sa.Column("description", sa.String(length=4096), nullable=True), sa.Column("school_id", sa.String(length=64), nullable=True), sa.ForeignKeyConstraint( ["school_id"], diff --git a/migrations/versions/5d0174b18d2f_.py b/migrations/versions/5d0174b18d2f_.py new file mode 100644 index 00000000..975d26d1 --- /dev/null +++ b/migrations/versions/5d0174b18d2f_.py @@ -0,0 +1,33 @@ +"""empty message + +Revision ID: 5d0174b18d2f +Revises: f7518ca21f44 +Create Date: 2025-01-28 17:36:38.753654 + +""" + +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = "5d0174b18d2f" +down_revision = "f7518ca21f44" +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table("user", schema=None) as batch_op: + batch_op.create_unique_constraint(None, ["id"]) + + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + with op.batch_alter_table("user", schema=None) as batch_op: + batch_op.drop_constraint(None, type_="unique") + + # ### end Alembic commands ###