OpenSlides/openslides/assignments/projector.py
Oskar Hahn 41aed15426 Make the projector-system explicit async.
Also lock config.build_key_to_id
2019-04-06 06:40:15 +02:00

23 lines
617 B
Python

from typing import Any, Dict
from ..utils.projector import AllData, register_projector_slide
# Important: All functions have to be prune. This means, that thay can only
# access the data, that they get as argument and do not have any
# side effects.
async def assignment_slide(
all_data: AllData, element: Dict[str, Any], projector_id: int
) -> Dict[str, Any]:
"""
Assignment slide.
"""
poll_id = element.get("tree") # noqa
return {"error": "TODO"}
def register_projector_slides() -> None:
register_projector_slide("assignments/assignment", assignment_slide)