Commit fb783ef9 authored by Koen Martens's avatar Koen Martens

Ignore some non-events

parent 7f548d8f
......@@ -6,12 +6,17 @@ class IslandOasisHelper(Helper):
titlere = re.compile('^[a-zA-Z]*\s*[0-9]+[apAP]m\s+(.*)$', flags=re.I)
badre = re.compile('Monarch.*s Winter Garden', flags=re.I)
hgexpr = {
}
def customizeEvent(self, event):
event = super(IslandOasisHelper, self).customizeEvent(event)
if IslandOasisHelper.badre.search(event.title):
return None
match = IslandOasisHelper.titlere.search(event.title)
if match is not None:
event.title = match.group(1)
......
......@@ -84,3 +84,4 @@ db9794c7e3de568cc28a83bb1775cd3a
8b9dbcafcc1a99f16aad5a6ebc817ca5
d89305323286eeb4dea9446c9e03ef00
0956ae1004bb73174bc08a98a212d14c
3c319c97c6645026e90033447c84dcb8
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment