Skip to content
Snippets Groups Projects
Commit fbd242c1 authored by istmxrein's avatar istmxrein
Browse files

Make ID an Optional entity

parent 32c7e404
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ STREAM_NAME = "meta.cube" ...@@ -20,7 +20,7 @@ STREAM_NAME = "meta.cube"
def convert_to_optional(schema): def convert_to_optional(schema):
return {k: Optional[v] for k, v in schema.__annotations__.items() if k != "id"} return {k: Optional[v] for k, v in schema.__annotations__.items()}
class Host(BaseModel): class Host(BaseModel):
...@@ -134,4 +134,3 @@ class MetaListener(threading.Thread): ...@@ -134,4 +134,3 @@ class MetaListener(threading.Thread):
logger.error(f"Connection closed unexpected, retrying...") logger.error(f"Connection closed unexpected, retrying...")
time.sleep(1) time.sleep(1)
continue continue
...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name='pilab', name='pilab',
version='3.1.1', version='3.2.1',
description='Shared-Libs for the pi-lab microservices', description='Shared-Libs for the pi-lab microservices',
url='https://code.fbi.h-da.de/api/v4/projects/27896/packages/pypi/pilab', url='https://code.fbi.h-da.de/api/v4/projects/27896/packages/pypi/pilab',
author='Max Reinheimer', author='Max Reinheimer',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment