# HG changeset patch # User Benoit Crickboom # Date 1755343097 -7200 # Node ID 44700cfa76560b9757d2a09b78819bac0bb5867a # Parent 7492a3915bf2ccc8deb9e7d87b6e09159287e1a3 fixed auto routing bug (DW) in Python page diff -r 7492a3915bf2 -r 44700cfa7656 Sphinx/source/plugins/python/autorouting-2.py --- a/Sphinx/source/plugins/python/autorouting-2.py Thu Aug 14 18:30:44 2025 +0200 +++ b/Sphinx/source/plugins/python/autorouting-2.py Sat Aug 16 13:18:17 2025 +0200 @@ -1,8 +1,10 @@ import orthanc +import json def OnChange(changeType, level, resourceId): if changeType == orthanc.ChangeType.STABLE_STUDY: print('Stable study: %s' % resourceId) - orthanc.RestApiPostAfterPlugins('/dicom-web/servers/sample/store', resourceId) + payload = { "Resources" : [resourceId] } + orthanc.RestApiPostAfterPlugins('/dicom-web/servers/sample/stow', payload) orthanc.RegisterOnChangeCallback(OnChange)