Skip to content

Commit d046678

Browse files
Merge branch 'main' into 236-registration-page
2 parents 473ff8f + ecfe18b commit d046678

File tree

5 files changed

+246
-286
lines changed

5 files changed

+246
-286
lines changed

db_init.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
db.session.add(row)
9090
db.session.commit()
9191

92-
class_years_rows = (2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031)
92+
class_years_rows = (2025, 2026, 2027, 2028, 2029, 2030, 2031)
9393

9494
for row_item in class_years_rows:
9595
row = ClassYears(class_year=row_item, active=True)
@@ -182,7 +182,7 @@
182182
False,
183183
True,
184184
SemesterEnum.SPRING,
185-
2024,
185+
2025,
186186
date.today(),
187187
True,
188188
datetime.now(),
@@ -198,7 +198,7 @@
198198
True,
199199
True,
200200
SemesterEnum.SPRING,
201-
2024,
201+
2025,
202202
date.today(),
203203
True,
204204
datetime.now(),
@@ -214,7 +214,7 @@
214214
True,
215215
True,
216216
SemesterEnum.FALL,
217-
2024,
217+
2025,
218218
date.today(),
219219
True,
220220
datetime.now(),
@@ -230,7 +230,7 @@
230230
True,
231231
True,
232232
SemesterEnum.SUMMER,
233-
2024,
233+
2025,
234234
date.today(),
235235
True,
236236
datetime.now(),
@@ -246,10 +246,10 @@
246246
True,
247247
False,
248248
SemesterEnum.FALL,
249-
2024,
250-
"2024-10-31",
249+
2025,
250+
"2025-10-31",
251251
True,
252-
"2024-10-10T10:30:00",
252+
"2025-10-10T10:30:00",
253253
LocationEnum.JROWL,
254254
),
255255
)
@@ -331,7 +331,7 @@
331331
db.session.add(row)
332332
db.session.commit()
333333

334-
recommends_class_years_rows = ((2, 2024), (2, 2025), (2, 2026), (1, 2027))
334+
recommends_class_years_rows = ((3, 2025), (2, 2025), (2, 2026), (1, 2027))
335335

336336
for r in recommends_class_years_rows:
337337
row = RecommendsClassYears(opportunity_id=r[0], class_year=r[1])
-234 Bytes
Loading

labconnect/main/auth_routes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def validate_code_and_get_user_email(code: str) -> tuple[str | None, bool | None
5656
def saml_login():
5757

5858
# In testing skip RPI login purely for local development
59-
if (
60-
current_app.config["TESTING"]
61-
and current_app.config["FRONTEND_URL"] == "http://localhost:3000"
59+
if current_app.config["TESTING"] and (
60+
current_app.config["FRONTEND_URL"] == "http://localhost:3000"
61+
or current_app.config["FRONTEND_URL"] == "http://127.0.0.1:3000"
6262
):
6363
# Generate JWT
6464
code = generate_temporary_code("[email protected]", True)

0 commit comments

Comments
 (0)