only tell me about events at buttonwillow or thunderhll

This commit is contained in:
Luke Robles 2021-09-23 15:43:18 -07:00
parent ea1944b118
commit 4b55565205

View File

@ -21,6 +21,8 @@ def get_msreg():
pp = pprint.PrettyPrinter(indent=4) pp = pprint.PrettyPrinter(indent=4)
for event in json_blob['event']: for event in json_blob['event']:
tracks_we_care_about = ["buttonwillow", "thunderhill"]
if any(x in event['name'].lower() for x in tracks_we_care_about):
event_object = { event_object = {
'event_name': event['name'], 'event_name': event['name'],
'event_url': event['detailuri'].split('?utm')[0], 'event_url': event['detailuri'].split('?utm')[0],