added further testing
This commit is contained in:
@@ -50,7 +50,7 @@ from async_messages import message_user,messages
|
|||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
def addcomment(userid,id):
|
def addcomment(userid,id):
|
||||||
time.sleep(45)
|
time.sleep(5)
|
||||||
w = Workout.objects.get(id=id)
|
w = Workout.objects.get(id=id)
|
||||||
w.notes += '\n the task has run'
|
w.notes += '\n the task has run'
|
||||||
w.save()
|
w.save()
|
||||||
|
|||||||
@@ -2188,6 +2188,7 @@ from django.contrib import messages
|
|||||||
@login_required()
|
@login_required()
|
||||||
def workout_test_task_view(request,id=0):
|
def workout_test_task_view(request,id=0):
|
||||||
row = Workout.objects.get(id=id)
|
row = Workout.objects.get(id=id)
|
||||||
|
res = addcomment(request.user.id,row.id)
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
res = addcomment.delay(request.user.id,row.id)
|
res = addcomment.delay(request.user.id,row.id)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user