only tell me about events at buttonwillow or thunderhll
This commit is contained in:
parent
ea1944b118
commit
4b55565205
@ -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],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user