def main(): scans = MapScan.objects.order_by('end_time') for idx,scan in enumerate(scans): print 'Scan: %d' % idx try: update_from_scan(scan) except: pass
def main(): scan = MapScan.objects.latest() update_from_scan(scan)