Fix issue where guidance and TOK lessons were ignored

This commit is contained in:
Abdulkadir Furkan Şanlı 2018-10-13 07:56:48 +02:00
parent 6d04b0f6f6
commit f0ff65d2e0

2
IA.py
View File

@ -56,6 +56,8 @@ def select_final_time(conn, day, id):
OR g4 = lesson_id OR g4 = lesson_id
OR g5 = lesson_id OR g5 = lesson_id
OR g6 = lesson_id OR g6 = lesson_id
OR lesson_id = 'gu'
OR leeson_id = 'to'
WHERE id = ? AND day = ? WHERE id = ? AND day = ?
ORDER BY end_time DESC ORDER BY end_time DESC
LIMIT 1 LIMIT 1