sprint/Main/views/TaskRuntimeView.py
2021-12-18 10:21:13 +03:00

13 lines
353 B
Python

from Main.models import Progress
from SprintLib.BaseView import BaseView
class TaskRuntimeView(BaseView):
view_file = "task_runtime.html"
required_login = True
endpoint = "task_runtime"
def get(self):
progress = Progress.objects.get(task=self.entities.task, user=self.request.user)
self.context["progress"] = progress