Skip to content

Commit

Permalink
Don't retry impossible addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Mar 14, 2009
1 parent 1d409ab commit c98f1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gis
Expand Up @@ -10,7 +10,7 @@ loadlib('location');
# Get an address that doesn't have a street cleaning schedule
# This orders randomly now because otherwise this will favor early users
$users = db_query("SELECT id, address FROM users WHERE address != ''
AND sweep_ts IS NULL;");
AND sweep_ts IS NULL AND impossible = '0';");
if (!is_array($users) || !sizeof($users)) { exit; }
foreach ($users as $user) {
if ('' == $user['address']) { continue; }
Expand Down

0 comments on commit c98f1f4

Please sign in to comment.