Added: Postgres Support
This commit is contained in:
@@ -9,7 +9,7 @@ Nova,Eib,Female,MeWi4,30%,Medienwissenschaften,31,15,15,34,20,20,21,27,19,21
|
||||
Lena,Fricke,Female,MeWi4,30%,Medienwissenschaften,13,14,15,21,15,17,17,18,19,11
|
||||
Nele,Grundke,Female,MeWi6,30%,Medienwissenschaften,23.5,13,16,28,20,17,21,18,22,11
|
||||
Anna,Grünewald,Female,MeWi3,30%,Medienwissenschaften,12,14,16,29,16,15,19,9,16,12
|
||||
Yannik,Haupt,Male,NoGroup,30%,Unknown,18,6,14,21,13,2,9,0,0,0
|
||||
Yannik,Haupt,Male,NoGroup,30%,Student,18,6,14,21,13,2,9,0,0,0
|
||||
Janna,Heiny,Female,MeWi1,30%,Technologie Orientiertes Managment,30,15,18,33,18,20,22,25,24,30
|
||||
Milena,Krieger,Female,MeWi1,30%,Technologie Orientiertes Managment,30,15,18,33,20,20,21.5,26,20,22
|
||||
Julia,Limbach,Female,MeWi6,30%,Medienwissenschaften,27.5,12,18,29,11,19,17.5,26,24,28
|
||||
@@ -32,7 +32,5 @@ Inga-Brit,Turschner,Female,MeWi2,30%,Medienwissenschaften,25.5,14,18,34,20,16,19
|
||||
Alea,Unger,Female,MeWi5,30%,Medienwissenschaften,30,12,18,31,20,20,21,22,15,21.5
|
||||
Marie,Wallbaum,Female,MeWi5,30%,Medienwissenschaften,28.5,14,18,34,17,20,19,24,12,22
|
||||
Katharina,Walz,Female,MeWi4,30%,Medienwissenschaften,31,15,18,31,19,19,17,24,17,14.5
|
||||
Xiaowei,Wang,Male,NoGroup,30%,Unknown,30.5,14,18,26,19,17,0,0,0,0
|
||||
Xiaowei,Wang,Male,NoGroup,30%,Student,30.5,14,18,26,19,17,0,0,0,0
|
||||
Lilly-Lu,Warnken,Female,DiKum,30%,Medienwissenschaften,30,15,18,30,14,17,19,14,16,24
|
||||
,,,,,,,,,,,,,,,
|
||||
|
||||
|
|
Binary file not shown.
@@ -31,12 +31,14 @@ groups = {
|
||||
}
|
||||
|
||||
print(df)
|
||||
init_db('WiSe_24_25.db')
|
||||
|
||||
|
||||
#init_db('WiSe_24_25.db')
|
||||
init_postgres('postgresql://admin:admin@127.0.0.1/learnlytics')
|
||||
db.drop_tables(tables)
|
||||
db.create_tables(tables)
|
||||
# Create Class
|
||||
clas = Class.create(name='WiSe 24/25')
|
||||
#print(clas.id)
|
||||
|
||||
Study.create(name='Student')
|
||||
|
||||
# Create Courses
|
||||
for k, v in courses.items():
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user