lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 6e88112ce0c765dba384f848bbd01551ab8f5788
parent 7b73857ac1a6fa663bf3beb43e996a01502b8adf
Author: rsiddharth <rsd@gnu.org>
Date:   Thu, 23 Aug 2018 02:51:00 +0000

libreplanet-templates/2019: Update lp-schedule.jinja2.

Use dict.items() instead of dict.iteritems()

Diffstat:
libreplanet-templates/2019/lp-schedule.jinja2 | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libreplanet-templates/2019/lp-schedule.jinja2 b/libreplanet-templates/2019/lp-schedule.jinja2 @@ -104,7 +104,7 @@ {# populate sessions macro #} {% macro populate_sessions(sessions, day_index, timeslot_index) %} - {% for session, session_info in sessions.iteritems() %} {# session start #} + {% for session, session_info in sessions.items() %} {# session start #} <section id="day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}" class="program-session"> {{ mk_session_header(session) }} {{ mk_speakers(session_info['speakers']) }} @@ -127,7 +127,7 @@ {# populate timeslots macro #} {% macro populate_timeslots(timeslots, day_index) %} - {% for timeslot, sessions in timeslots.iteritems() %} {# timeslot start #} + {% for timeslot, sessions in timeslots.items() %} {# timeslot start #} <article id="day-{{ day_index }}-timeslot-{{ loop.index }}" class="program-timeslot"> {{ mk_timeslot_header(timeslot) }} {% if sessions|length > 0 %} @@ -138,7 +138,7 @@ {% endmacro %} {# lp schedule 2019 template start #} -{% for day, timeslots in lp_dict.iteritems() %} {# day start #} +{% for day, timeslots in lp_dict.items() %} {# day start #} <article id="day-{{ loop.index }}-program" class="program-day"> {{ mk_day_header(day) }} {{ populate_timeslots(timeslots, loop.index) }}