diff options
author | Lars Kroenner | 2019-12-28 15:46:31 +0100 |
---|---|---|
committer | Lars Kroenner | 2019-12-28 15:46:31 +0100 |
commit | 257985abe678f0e8056464f3e69a2a5a72ebaa33 (patch) | |
tree | 8e451f9f0458ce4c9a9c41883ab899f0f49d49e8 /parser/schedule.py | |
parent | 5af19a2df10ba7f240991c771740201de654b8e5 (diff) |
Parser improvements
Diffstat (limited to 'parser/schedule.py')
-rw-r--r-- | parser/schedule.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/parser/schedule.py b/parser/schedule.py index 89c5bfb..30bb74e 100644 --- a/parser/schedule.py +++ b/parser/schedule.py @@ -15,13 +15,23 @@ class ScheduleParser(): if param_name == 'speaker': for conference in l: for person in conference['persons']: - if person['public_name'].lower() == param_value.lower(): + if param_value.lower() in person['public_name'].lower(): confs.append(conference) break elif param_name == 'room': for conference in l: - if conference['room'].lower() == param_value.lower(): + if param_value.lower() in conference['room'].lower(): + confs.append(conference) + + elif param_name == 'time': + for conference in l: + if conference['start'].lower() == param_value.lower(): + confs.append(conference) + + elif param_name == 'title': + for conference in l: + if param_value.lower() in conference['abstract'].lower(): confs.append(conference) |