aboutsummaryrefslogtreecommitdiff
path: root/management/commands
diff options
context:
space:
mode:
Diffstat (limited to 'management/commands')
-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