Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 0 additions & 1 deletion labconnect/main/opportunity_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions migrations/versions/55928fddcb12_initial_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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"],
Expand Down
33 changes: 33 additions & 0 deletions migrations/versions/5d0174b18d2f_.py
Original file line number Diff line number Diff line change
@@ -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 ###
Loading