def filter_participants(event):
include_participants = request.values.get('include_participants', '').lower()
if include_participants == 'true':
return event
else:
return {k: v for k, v in event.items() if k != 'participants'}
评论列表
文章目录