[NUUG fiksgatami] send-alert cron job complain with "No Area matches the given query."

Petter Reinholdtsen pere at hungry.com
Fri Apr 8 15:26:07 CEST 2011


[Matthew Somerville]
> alert_parameter is set to 12, and http://mapit.nuug.no/area/12.html
> exists fine, hmm. <time passes> Okay, so get_voting_area_info (an
> old-MaPit call) assumes a two digit number given to it is a UK ONS
> code to be looked up, not a primary ID. :-/ I've switched it to use
> the new MaPit area call, which doesn't have that edge case, so this
> should now be fixed. Sorry about that.

Right.  I got as far as verifying the existence of mapit area, but did
not find the problem with the get_voting_area_info() call.

The fix is in production, and no email showed up 15:00.  Thank you very much!

Happy hacking,
-- 
Petter Reinholdtsen


More information about the fiksgatami mailing list