Skip to content

Commit be7a2fa

Browse files
223 create and edit routes (#228)
2 parents f000b74 + fabe16d commit be7a2fa

File tree

2 files changed

+312
-298
lines changed

2 files changed

+312
-298
lines changed

db_init.py

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@
115115
("goldd", "David", "Goldschmidt", "CSCI", "VIM master"),
116116
("rami", "Rami", "Rami", "MTLE", "cubes are cool"),
117117
("holm", "Mark", "Holmes", "MATH", "all about that math"),
118+
("test", "RCOS", "RCOS", "CSCI", "first test"),
119+
("test2", "RCOS", "RCOS", "CSCI", "Second test"),
120+
("test3", "RCOS", "RCOS", "CSCI", "Third test"),
118121
)
119122

120123
raf_test_user = (
@@ -233,6 +236,22 @@
233236
datetime.now(),
234237
LocationEnum.JEC,
235238
),
239+
(
240+
"Data Science Research",
241+
"Work with a team of researchers to analyze large datasets and extract meaningful insights.",
242+
"Python, Machine Learning, Data Analysis",
243+
20.0,
244+
True,
245+
False,
246+
True,
247+
False,
248+
SemesterEnum.FALL,
249+
2024,
250+
"2024-10-31",
251+
True,
252+
"2024-10-10T10:30:00",
253+
LocationEnum.JROWL,
254+
),
236255
)
237256

238257
for row_tuple in opportunities_rows:
@@ -290,6 +309,7 @@
290309
(2, 2),
291310
(1, 3),
292311
(4, 4),
312+
(8, 5),
293313
)
294314

295315
for r in leads_rows:
@@ -318,45 +338,6 @@
318338
db.session.add(row)
319339
db.session.commit()
320340

321-
user_rows = (
322-
(
323-
"test",
324-
325-
"RCOS",
326-
"RCOS",
327-
None,
328-
2028,
329-
),
330-
(
331-
"test2",
332-
333-
"RCOS",
334-
"RCOS",
335-
None,
336-
2029,
337-
),
338-
(
339-
"test3",
340-
341-
"RCOS",
342-
"RCOS",
343-
None,
344-
2025,
345-
),
346-
)
347-
for r in user_rows:
348-
row = User(
349-
id=r[0],
350-
email=r[1],
351-
first_name=r[2],
352-
last_name=r[3],
353-
preferred_name=r[4],
354-
class_year=r[5],
355-
profile_picture="https://www.svgrepo.com/show/206842/professor.svg",
356-
)
357-
db.session.add(row)
358-
db.session.commit()
359-
360341
user_majors = (
361342
("cenzar", "MATH"),
362343
("cenzar", "CSCI"),

0 commit comments

Comments
 (0)