Esempio n. 1
0
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')
Esempio n. 2
0
File: views.py Progetto: Arox/km_app
def create_report():
    from tasks import report
    report.delay()
Esempio n. 3
0
File: views.py Progetto: Arox/km_app
 def get(self, request, *args, **kwargs):
     from tasks import report
     report.delay()
     return super(ClientDelete, self).get(request, *args, **kwargs)