aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2018-02-10 15:13:20 +0100
committerAlban Gruin2018-02-10 15:14:51 +0100
commit9b312281e0f2a9668ab90d77f212c9618daec7db (patch)
tree09a86205b5fc9f339b02dbc6ea77c0d88cee4bbf
parent3354c34fa1f58750597b9e6213a81e3443721ac0 (diff)
Correction des imports
-rw-r--r--management/commands/_private.py4
-rw-r--r--management/commands/cleancourses.py3
-rw-r--r--management/commands/listtimetables.py2
-rw-r--r--management/commands/timetables.py5
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 <http://www.gnu.org/licenses/>.
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