Skip to content

Commit 3123fd0

Browse files
committed
fill in missing fields
1 parent 7747b97 commit 3123fd0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mazevo_r25/management/commands/r25_mazevo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ def handle(self, *args, **options):
202202
"enrollment": reservation.registered_count,
203203
"meetingTimesDict": {},
204204
}
205+
if not courses[event_id]["section"]:
206+
logger.info("No section for {}".format(reservation.event_name))
207+
courses[event_id]["section"] = "-"
208+
if not courses[event_id]["enrollment"]:
209+
courses[event_id]["enrollment"] = "0"
210+
205211
if event_id in unlisted_event_ids or (
206212
reservation.event_notes and
207213
"safecampus" in reservation.event_notes.lower()):

0 commit comments

Comments
 (0)