Skip to content
Snippets Groups Projects
Commit 4db5298e authored by Matthias Stefan Bodenbenner's avatar Matthias Stefan Bodenbenner
Browse files

fixed semantic name resolution (again)

parent fcaabd61
Branches
Tags 9.3.2
No related merge requests found
Pipeline #372983 passed
[![Build](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/badges/master/pipeline.svg)](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master)
# Python Unified Device Interface
Current stable version: 9.3.1
Current stable version: 9.3.2
## Installation
1. Install the WZL-UDI package via pip
......@@ -58,6 +58,9 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)
## Recent changes
**9.3.2** - 2024-03-14
- fixed semantic name resolution (again)
**9.3.1** - 2024-03-14
- fixed semantic name resolution
......
......@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(name='wzl-udi',
version='9.3.1',
version='9.3.2',
url='https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python',
project_urls={
"Bug Tracker": "https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python/-/issues",
......
......@@ -216,7 +216,9 @@ class HTTPServer(object):
item, status = None, 200
elif resource_type == ResourceType.metadata or resource_type == ResourceType.data:
item, resource_type = self.root.resolve_semantic_path(request.url.parts[-1])
semantic_name = request.url.parts[-2] if request.url.parts[-1] == '' else request.url.parts[-1]
item, resource_type = self.root.resolve_semantic_path(semantic_name)
else:
assert resource_type == ResourceType.element
uuids = HTTPServer.parse_uuids(request)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment