Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
symposion: drop out garbage entries
  • Loading branch information
micolous committed Jan 13, 2017
1 parent b2ca4bc commit 1757c7a
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions website/symposion2internal.py
Expand Up @@ -59,15 +59,8 @@ def utc__repr__(self):
if 'kind' in item and item['kind'] not in ('plenary', 'talk'):
continue

roomkey = 'room'
if roomkey not in item:
roomkey = 'room name'

namekey = 'name'
if namekey not in item:
namekey = 'title'

room = item[roomkey].strip()
room = item['room'].strip()
channel = ROOM_MAP.get(room, None)
if not channel:
continue
Expand All @@ -86,10 +79,22 @@ def utc__repr__(self):
else:
outitem['url'] = None

if item[namekey] == 'Keynote':
outitem['title'] = "%s: %s" % (item[namekey], item['authors'][0])
name = '%s - %s' % (item['kind'], item['name'])

if item['kind'] in ('talk', 'tutorial'):
if item['name'] == 'Slot':
# Empty position in the schedule
continue
# Only show the name
name = item['name']

if item['name'] == 'Slot':
name = item['kind']

if name == 'Keynote':
outitem['title'] = "%s: %s" % (name, ', '.join(item['authors']))
else:
outitem['title'] = item[namekey]
outitem['title'] = name

if 'abstract' in item:
outitem['abstract'] = convert(item['abstract'])
Expand Down

0 comments on commit 1757c7a

Please sign in to comment.