コード例 #1
0
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
コード例 #2
0
def main():
    scan = MapScan.objects.latest()

    update_from_scan(scan)