aboutsummaryrefslogtreecommitdiff
path: root/management/commands/_private.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-06 17:55:56 +0200
committerAlban Gruin2017-09-06 17:55:56 +0200
commit735041124f1df31c5c947f13ee34bdf3e747d703 (patch)
tree26cdf3a6f41ced4bdc113c9e4dbe9fb08080f0dc /management/commands/_private.py
parent25166bcee501d1e5d72a2d2372cbeb5c3b82eec7 (diff)
Le parseur récupère l’ID des événements et les stocke dans la base
Diffstat (limited to 'management/commands/_private.py')
-rw-r--r--management/commands/_private.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/management/commands/_private.py b/management/commands/_private.py
index c31eb34..72e5440 100644
--- a/management/commands/_private.py
+++ b/management/commands/_private.py
@@ -120,7 +120,7 @@ def get_events(timetable, year, week, soup, weeks_in_soup):
rooms = [get_from_db_or_create(Room, name=item.text)
for item in event.resources.room.find_all("item")]
- yield title, type_, groups, rooms, notes, begin, end
+ yield title, type_, groups, rooms, notes, begin, end, event["id"]
def get_weeks(soup):
weeks = {}