def data(): #return str(request.form['startDate']) report.delay( str(request.form['startDate']), str(request.form['endDate']), int(request.form['attribDays']), int(request.form['eventDays'])) # Sends the report request to celery return render_template('data.html')
def create_report(): from tasks import report report.delay()
def get(self, request, *args, **kwargs): from tasks import report report.delay() return super(ClientDelete, self).get(request, *args, **kwargs)