aboutsummaryrefslogtreecommitdiff
path: root/management/commands/timetables.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 12:24:11 +0200
committerAlban Gruin2017-09-07 12:24:11 +0200
commite1867b989a913612cf2c4c76e8cecd60f479b4c2 (patch)
treeca473762d2cf158364e693f1a4676863f648bb3b /management/commands/timetables.py
parentc29a91c70de7d585e52c617d77e2f061cfad0cde (diff)
Suppression des fonctions et imports inutiles
Diffstat (limited to 'management/commands/timetables.py')
-rw-r--r--management/commands/timetables.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/management/commands/timetables.py b/management/commands/timetables.py
index 389473f..0f9ee1b 100644
--- a/management/commands/timetables.py
+++ b/management/commands/timetables.py
@@ -21,14 +21,13 @@ from django.utils import timezone
from edt.models import Timetable, LastUpdate, Course, CourseDelta
from edt.utils import get_week
-from ._private import delete_courses_in_week, get_events, get_weeks, get_xml
+
+from ._private import get_events, get_weeks, get_xml
import datetime
@transaction.atomic
def process_timetable_week(timetable, year, week, soup, weeks_in_soup):
- # delete_courses_in_week(timetable, year, week)
-
date = timezone.make_aware(datetime.datetime.now())
last_update = LastUpdate(timetable=timetable, year=year, week=week, date=date)
last_update.save()