From 9b312281e0f2a9668ab90d77f212c9618daec7db Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 10 Feb 2018 15:13:20 +0100 Subject: Correction des imports --- management/commands/_private.py | 4 ++-- management/commands/cleancourses.py | 3 ++- management/commands/listtimetables.py | 2 +- management/commands/timetables.py | 5 +++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/management/commands/_private.py b/management/commands/_private.py index 0f87179..94c1918 100644 --- a/management/commands/_private.py +++ b/management/commands/_private.py @@ -19,8 +19,8 @@ import re from bs4 import BeautifulSoup from django.utils import timezone -from edt.models import Course, Group, Room -from edt.utils import get_week +from ...models import Course, Group, Room +from ...utils import get_week import requests import edt diff --git a/management/commands/cleancourses.py b/management/commands/cleancourses.py index 88eec64..246cfcc 100644 --- a/management/commands/cleancourses.py +++ b/management/commands/cleancourses.py @@ -15,7 +15,8 @@ from django.core.management.base import BaseCommand from django.db import transaction -from edt.models import Course, Group + +from ...models import Course, Group class Command(BaseCommand): diff --git a/management/commands/listtimetables.py b/management/commands/listtimetables.py index a3ef223..d17399a 100644 --- a/management/commands/listtimetables.py +++ b/management/commands/listtimetables.py @@ -14,7 +14,7 @@ # along with celcatsanitizer. If not, see . from django.core.management.base import BaseCommand -from edt.models import Source +from ...models import Source class Command(BaseCommand): diff --git a/management/commands/timetables.py b/management/commands/timetables.py index 2c299de..f92ad4e 100644 --- a/management/commands/timetables.py +++ b/management/commands/timetables.py @@ -20,8 +20,9 @@ from django.core.management.base import BaseCommand from django.db import transaction from django.db.models import Min -from edt.models import Course, Source -from edt.utils import get_week, tz_now +from ...models import Course, Source +from ...utils import get_week, tz_now + from ._private import delete_courses_in_week, get_events, get_update_date, \ get_weeks, get_xml -- cgit v1.2.1