Skip to content

Commit

Permalink
Modify the loop for getting meetup_ids in site template
Browse files Browse the repository at this point in the history
  • Loading branch information
willingc committed May 9, 2015
1 parent 995f7c5 commit c64cc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/_templates/site.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script type="text/javascript" src="{{ get_asset('js/meetup_widget.js') }}"></script>
<script type="text/javascript">
$(document).ready(function() {
var meetupIds = '{% for chapter in site.chapters %}{{ chapter.meetup_id }}{% if not loop.last %},{% endif %}{% endfor %}';
var meetupIds = '{% for chapter in site.chapters %}{% if chapter.meetup_id %}{{ chapter.meetup_id }}{% if not loop.last %},{% endif %}{% endif %}{% endfor %}'
PyladiesMeetupWidget.addUpcomingMeetups(meetupIds);
});
</script>
Expand Down

0 comments on commit c64cc23

Please sign in to comment.