Skip to content

Commit

Permalink
Serialize only session timetable when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
mic4ael committed Jul 26, 2018
1 parent 23fe717 commit 44c27de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions indico/modules/events/timetable/controllers/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,9 @@ def _process(self):
class RHLegacyTimetableEditSession(RHSessionREST):
def _process_PATCH(self):
RHSessionREST._process_PATCH(self)
return jsonify_data(entries=[serialize_entry_update(block.timetable_entry) for block in self.session.blocks],
flash=False)
entries = [serialize_entry_update(block.timetable_entry, session_=self.session)
for block in self.session.blocks]
return jsonify_data(entries=entries, flash=False)


class RHLegacyTimetableBreakREST(RHBreakREST):
Expand Down

0 comments on commit 44c27de

Please sign in to comment.