Mercurial > hg > orthanc
comparison Resources/Samples/Python/HighPerformanceAutoRouting.py @ 1143:8bff277e6886
note
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Sep 2014 10:26:10 +0200 |
parents | 44382c8bcd15 |
children | fef79a477e09 |
comparison
equal
deleted
inserted
replaced
1142:952cf9b6be83 | 1143:8bff277e6886 |
---|---|
116 # Remove all the instances from Orthanc | 116 # Remove all the instances from Orthanc |
117 for instance in instances: | 117 for instance in instances: |
118 RestToolbox.DoDelete('%s/instances/%s' % (URL, instance)) | 118 RestToolbox.DoDelete('%s/instances/%s' % (URL, instance)) |
119 | 119 |
120 # Clear the log of the exported instances (to prevent the | 120 # Clear the log of the exported instances (to prevent the |
121 # SQLite database from growing indefinitely) | 121 # SQLite database from growing indefinitely). More simply, |
122 # you could also set the "LogExportedResources" option to | |
123 # "false" in the configuration file. | |
122 RestToolbox.DoDelete('%s/exports' % URL) | 124 RestToolbox.DoDelete('%s/exports' % URL) |
123 | 125 |
124 end = time.time() | 126 end = time.time() |
125 print 'The packet of %d instances has been sent in %d seconds' % (len(instances), end - start) | 127 print 'The packet of %d instances has been sent in %d seconds' % (len(instances), end - start) |
126 | 128 |