Open TheDepe opened 7 months ago
So the story here is like this, each midnight we are expecting to run cronjob. if module.survey date is that exact date, we are new instance of survey, set it active and all rest will be passive, so I can return you only the active one when you ask GET: student_id/survey GET: student/id/module/3/survey/2
Do we need both cases
there might be some extra or missing fields but I can add
Need an endpoint essentially:
return (Surveys.objects.filter(student=student_id, status=not_completed))
Fields required:
Survey ID Survey number Module Info Survey Deadline