diff options
author | Alban Gruin | 2017-09-07 12:24:11 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-07 12:24:11 +0200 |
commit | e1867b989a913612cf2c4c76e8cecd60f479b4c2 (patch) | |
tree | ca473762d2cf158364e693f1a4676863f648bb3b /management/commands/_private.py | |
parent | c29a91c70de7d585e52c617d77e2f061cfad0cde (diff) |
Suppression des fonctions et imports inutiles
Diffstat (limited to 'management/commands/_private.py')
-rw-r--r-- | management/commands/_private.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/management/commands/_private.py b/management/commands/_private.py index 72e5440..f0b5b87 100644 --- a/management/commands/_private.py +++ b/management/commands/_private.py @@ -16,9 +16,7 @@ from bs4 import BeautifulSoup from django.utils import timezone - -from edt.models import Group, Room, Course -from edt.utils import get_week +from edt.models import Group, Room import datetime import requests @@ -62,11 +60,6 @@ def consolidate_groups(groups): if group.parent == None: consolidate_group(group) -def delete_courses_in_week(timetable, year, week): - start, end = get_week(year, week) - Course.objects.filter(begin__gte=start, begin__lt=end, - timetable=timetable).delete() - def get_from_db_or_create(cls, **kwargs): obj = cls.objects.all().filter(**kwargs) |