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

limit pydantic version to prevent break

parent 5f241b3c
No related branches found
No related tags found
No related merge requests found
......@@ -398,3 +398,11 @@ def run_restart_consumer(macs: List[str], _type: Type, callback: Callable = None
switch_consumer = restart_consumer(switch_consumer)
case _:
raise ValueError("Type is not known")
def get_latest_event(mac: str):
return state.get(mac)
def get_latest_state(mac: str):
event = state.get(mac)
return event.state if event else None
......@@ -2,14 +2,14 @@ from setuptools import setup, find_packages
setup(
name='pilab',
version='3.3.1',
version='3.3.2',
description='Shared-Libs for the pi-lab microservices',
url='https://code.fbi.h-da.de/api/v4/projects/27896/packages/pypi/pilab',
author='Max Reinheimer',
author_email='maximilian.reinheimer@stud.h-da.de',
license='MIT',
packages=find_packages(),
install_requires=['pika', 'pydantic'],
install_requires=['pika', 'pydantic>=1,<2.0.0'],
classifiers=[
'Development Status :: 3 - Alpha',
'Operating System :: POSIX :: Linux',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment