Fixed some bugs.
This commit is contained in:
@@ -13,7 +13,7 @@ SECCTION_IDS = {"C1": 1,
|
||||
QUERY = "SELECT students.id_card AS cedula, students.first_name AS nombre, students.last_name AS apellido, students.email AS email, sections.section AS seccion, schedules.description AS horario, rooms.name AS salon FROM students INNER JOIN schedules ON schedules.sched_id = students.schedule_id INNER JOIN rooms ON schedules.room_id = rooms.room_id INNER JOIN sections ON students.class_id = sections.section_id AND students.class_id = $sect AND students.subject_id = $subj;"
|
||||
|
||||
def main():
|
||||
db = web.database(dbn = 'mysql', user = 'root', pw = 'Familylost9989*', db = 'labs')
|
||||
db = web.database(dbn = 'mysql', user = '', pw = '', db = '')
|
||||
|
||||
for s in SUBJECTS:
|
||||
for c in SECCTION_IDS.keys():
|
||||
|
Reference in New Issue
Block a user