Fixed some bugs.

This commit is contained in:
Miguel Angel Astor Romero
2017-10-02 16:41:18 -04:00
parent 91107d71bf
commit 18cb664bc3
4 changed files with 47 additions and 22 deletions

View File

@@ -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():