Mercurial > hg > orthanc
comparison Resources/Samples/Python/HighPerformanceAutoRouting.py @ 413:47d63c941902
clearing /exports and /changes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 03 May 2013 15:23:09 +0200 |
parents | 4b9a7010b1ea |
children | 44382c8bcd15 |
comparison
equal
deleted
inserted
replaced
412:f1a0c472af79 | 413:47d63c941902 |
---|---|
97 | 97 |
98 # Remove all the instances from Orthanc | 98 # Remove all the instances from Orthanc |
99 for instance in instances: | 99 for instance in instances: |
100 RestToolbox.DoDelete('%s/instances/%s' % (URL, instance)) | 100 RestToolbox.DoDelete('%s/instances/%s' % (URL, instance)) |
101 | 101 |
102 # Clear the log of the exported instances (to prevent the | |
103 # SQLite database from growing indefinitely) | |
104 RestToolbox.DoDelete('%s/exports' % URL) | |
105 | |
102 end = time.time() | 106 end = time.time() |
103 print 'The packet of %d instances has been sent in %d seconds' % (len(instances), end - start) | 107 print 'The packet of %d instances has been sent in %d seconds' % (len(instances), end - start) |
104 | 108 |
105 | 109 |
106 # | 110 # |