All pastes #163403 Raw Edit

Someone

public python v1 · immutable
·published 2006-09-07 14:30 UTC
rendered paste body
  first_row = 1;  curs.execute("SELECT id, port_id, category, port FROM cache_clearing_ports ORDER BY id")  for row in curs.dictfetchall():    if (first_row):      min_id = row['id']      max_id = row['id']      first_row = 0     else:      min_id = min(row['id']);      max_id = max(row['id']);     # other processing goes here