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

godsTweetSuite.checkProfiles

on checkProfiles (accountname) {
	<<Changes
		<<5/5/09; 10:13:00 AM by DW
			<<Created. Load the profiles of people we don't have profiles for, or whose profiles need refreshing.
	local (adrdata = godsTweetSuite.init (accountname), now = clock.now (), adr);
	for adr in @adrdata^.userProfiles {
		godsTweetSuite.initProfile (accountname, nameof (adr^));
		if not defined (adr^.profile) or (now >= adr^.whenReloadProfile) {
			twitter.getuserprofile (nameof (adr^), @adr^.profile);
			adr^.whenReloadProfile = date.tomorrow (now) + random (0, 3600);
			adr^.whenReloadImage = now;
			adr^.ctProfileReloads++}}};
bundle { //test code
	checkProfiles ()}



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.