Tuesday, August 18, 2009 at 7:52 PM.

godsTweetSuite.everyMinute

<<Changes
	<<5/24/09; 10:46:29 AM by DW
		<<Only poll one account each minute, the one that's been least recently polled.
	<<5/9/09; 3:58:01 PM by DW
		<<Respect the enabled boolean.
	<<5/4/09; 1:45:16 PM by DW
		<<Created. 
local (adrconfig = @config.godTweets, adraccount, adrlr = nil, whenlr = clock.now ());
for adraccount in adrconfig {
	local (accountname = nameof (adraccount^));
	local (adrdata = godsTweetSuite.init (accountname));
	if adrdata^.prefs.enabled {
		if adrdata^.stats.whenLastPoll < whenlr {
			whenlr = adrdata^.stats.whenLastPoll;
			adrlr = adraccount}}};
if adrlr != nil {
	local (accountname = nameof (adrlr^));
	scratchpad.lastgodaccountpoll = accountname;
	godsTweetSuite.poller (accountname);
	godsTweetSuite.buildReport (accountname)}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.