Navigation Bar

Tuesday, July 27, 2010

More changes to the Group Buy Feed

I fixed a bunch of odd behaviours that would sometimes crop up.

Bug #1: WagJag often goes days without a deal. When this happened the following would show up:

<title>Never miss a WagJag! - $32 For Tickets to Keane (A $64 Value) <br><i> Disco Lemonade Tour Live at the Molson Canadian Amphitheatre on July 30th</i></title>

In other words, the script would fail to find a Vancouver deal so a Toronto deal showed instead. The regular expression also gets broken so the HTML tags don't get filtered out.

This only affected users who viewed the feed directly or through an RSS reader. If you viewed the feed via the forum or blog, content within html tags automatically get filtered out anyway so the WagJag entry would get omitted when they didn't have a deal.

Bug #2: TeamBuy often has side deals, the way I've chosen to include these side deals led to duplicate entries if there was no side deal that day.

Bug #1 was fixed by introducing a blocking filter.
Bug #2 was fixed by checking for duplicates before generating the feed.

No comments:

Post a Comment