From c5a2e0be4d55fd496df00c564ce18a13f995af3c Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Mon, 3 Jun 2019 12:54:40 +0200 Subject: [PATCH] move drive part 2 --- biscuit/apps/untis/events.py | 2 ++ biscuit/apps/untis/parse.py | 3 ++- biscuit/apps/untis/sub.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/biscuit/apps/untis/events.py b/biscuit/apps/untis/events.py index 3ec3d77..5f4fb45 100644 --- a/biscuit/apps/untis/events.py +++ b/biscuit/apps/untis/events.py @@ -1,3 +1,5 @@ +from .drive import drive + ######### # EVENT # ######### diff --git a/biscuit/apps/untis/parse.py b/biscuit/apps/untis/parse.py index ccde016..777688b 100755 --- a/biscuit/apps/untis/parse.py +++ b/biscuit/apps/untis/parse.py @@ -111,7 +111,8 @@ class LessonTime(object): from .api import * from .api_helper import untis_split_third - +from .drive import drive +drive = drive def parse(): global drive diff --git a/biscuit/apps/untis/sub.py b/biscuit/apps/untis/sub.py index 1621125..2ceab3d 100644 --- a/biscuit/apps/untis/sub.py +++ b/biscuit/apps/untis/sub.py @@ -3,7 +3,8 @@ from django.utils import timezone from untisconnect import models from untisconnect.api import run_default_filter, row_by_row_helper, format_classes, get_all_absences_by_date from untisconnect.api_helper import run_using, untis_split_first, untis_date_to_date, date_to_untis_date -from untisconnect.parse import get_lesson_element_by_id_and_teacher, build_drive +from untisconnect.parse import get_lesson_element_by_id_and_teacher +from untisconnect.drive import build_drive TYPE_SUBSTITUTION = 0 TYPE_CANCELLATION = 1 -- GitLab